forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHbmMapping.cs
68 lines (56 loc) · 1.62 KB
/
HbmMapping.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Linq;
namespace NHibernate.Cfg.MappingSchema
{
partial class HbmMapping : AbstractDecoratable
{
public HbmDatabaseObject[] DatabaseObjects
{
get { return databaseobject ?? Array.Empty<HbmDatabaseObject>(); }
}
public HbmFilterDef[] FilterDefinitions
{
get { return filterdef ?? Array.Empty<HbmFilterDef>(); }
}
public HbmResultSet[] ResultSets
{
get { return resultset ?? Array.Empty<HbmResultSet>(); }
}
public HbmTypedef[] TypeDefinitions
{
get { return typedef ?? Array.Empty<HbmTypedef>(); }
}
public HbmImport[] Imports
{
get { return import ?? Array.Empty<HbmImport>(); }
}
protected override HbmMeta[] Metadatas
{
get { return meta ?? Array.Empty<HbmMeta>(); }
}
public HbmClass[] RootClasses
{
get { return Items != null ? Items.OfType<HbmClass>().ToArray():Array.Empty<HbmClass>(); }
}
public HbmSubclass[] SubClasses
{
get { return Items != null ? Items.OfType<HbmSubclass>().ToArray(): Array.Empty<HbmSubclass>(); }
}
public HbmJoinedSubclass[] JoinedSubclasses
{
get { return Items != null ? Items.OfType<HbmJoinedSubclass>().ToArray(): Array.Empty<HbmJoinedSubclass>(); }
}
public HbmUnionSubclass[] UnionSubclasses
{
get { return Items != null ? Items.OfType<HbmUnionSubclass>().ToArray(): Array.Empty<HbmUnionSubclass>(); }
}
public HbmQuery[] HqlQueries
{
get { return Items1 != null ? Items1.OfType<HbmQuery>().ToArray() : Array.Empty<HbmQuery>(); }
}
public HbmSqlQuery[] SqlQueries
{
get { return Items1 != null ? Items1.OfType<HbmSqlQuery>().ToArray() : Array.Empty<HbmSqlQuery>(); }
}
}
}