-
Notifications
You must be signed in to change notification settings - Fork 935
/
Copy pathSessionFactoryConfigurationBase.cs
73 lines (65 loc) · 1.92 KB
/
SessionFactoryConfigurationBase.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
69
70
71
72
73
using System.Collections.Generic;
using NHibernate.Cfg.ConfigurationSchema;
namespace NHibernate.Cfg
{
public class SessionFactoryConfigurationBase : ISessionFactoryConfiguration
{
private string name = string.Empty;
private readonly Dictionary<string, string> properties = new Dictionary<string, string>();
private readonly List<MappingConfiguration> mappings = new List<MappingConfiguration>();
private readonly List<ClassCacheConfiguration> classesCache= new List<ClassCacheConfiguration>();
private readonly List<CollectionCacheConfiguration> collectionsCache= new List<CollectionCacheConfiguration>();
private readonly List<EventConfiguration> events= new List<EventConfiguration>();
private readonly List<ListenerConfiguration> listeners= new List<ListenerConfiguration>();
/// <summary>
/// The session factory name.
/// </summary>
public string Name
{
get { return name; }
protected set { name = value; }
}
/// <summary>
/// Session factory properties bag.
/// </summary>
public IDictionary<string,string> Properties
{
get { return properties; }
}
/// <summary>
/// Session factory mapping configuration.
/// </summary>
public IList<MappingConfiguration> Mappings
{
get { return mappings; }
}
/// <summary>
/// Session factory class-cache configurations.
/// </summary>
public IList<ClassCacheConfiguration> ClassesCache
{
get { return classesCache; }
}
/// <summary>
/// Session factory collection-cache configurations.
/// </summary>
public IList<CollectionCacheConfiguration> CollectionsCache
{
get { return collectionsCache; }
}
/// <summary>
/// Session factory event configurations.
/// </summary>
public IList<EventConfiguration> Events
{
get { return events; }
}
/// <summary>
/// Session factory listener configurations.
/// </summary>
public IList<ListenerConfiguration> Listeners
{
get { return listeners; }
}
}
}