Go to the documentation of this file.00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004 using System.Configuration;
00005
00006 namespace N2.Configuration
00007 {
00011 public class DatabaseSection : ConfigurationSectionBase
00012 {
00014 [ConfigurationProperty("caching", DefaultValue = false)]
00015 public bool Caching
00016 {
00017 get { return (bool)base["caching"]; }
00018 set { base["caching"] = value; }
00019 }
00020
00022 [ConfigurationProperty("tryLocatingHbmResources")]
00023 public bool TryLocatingHbmResources
00024 {
00025 get { return (bool)base["tryLocatingHbmResources"]; }
00026 set { base["tryLocatingHbmResources"] = value; }
00027 }
00028
00035 [ConfigurationProperty("cacheProviderClass", DefaultValue = "NHibernate.Cache.NoCacheProvider, NHibernate")]
00036 public string CacheProviderClass
00037 {
00038 get { return (string)base["cacheProviderClass"]; }
00039 set { base["cacheProviderClass"] = value; }
00040 }
00041
00043 [ConfigurationProperty("connectionStringName", DefaultValue = "N2CMS")]
00044 public string ConnectionStringName
00045 {
00046 get { return (string)base["connectionStringName"]; }
00047 set { base["connectionStringName"] = value; }
00048 }
00049
00051 [ConfigurationProperty("tablePrefix", DefaultValue = "n2")]
00052 public string TablePrefix
00053 {
00054 get { return (string)base["tablePrefix"]; }
00055 set { base["tablePrefix"] = value; }
00056 }
00057
00059 [ConfigurationProperty("childrenLaziness", DefaultValue = "extra")]
00060 public string ChildrenLaziness
00061 {
00062 get { return (string)base["childrenLaziness"]; }
00063 set { base["childrenLaziness"] = value; }
00064 }
00065
00067 [ConfigurationProperty("batchSize", DefaultValue = 25)]
00068 public int BatchSize
00069 {
00070 get { return (int)base["batchSize"]; }
00071 set { base["batchSize"] = value; }
00072 }
00073
00075 [ConfigurationProperty("flavour", DefaultValue = DatabaseFlavour.AutoDetect)]
00076 public DatabaseFlavour Flavour
00077 {
00078 get { return (DatabaseFlavour)base["flavour"]; }
00079 set { base["flavour"] = value; }
00080 }
00081
00083 [ConfigurationProperty("hibernateMapping")]
00084 public string HibernateMapping
00085 {
00086 get { return (string)base["hibernateMapping"]; }
00087 set { base["hibernateMapping"] = value; }
00088 }
00089
00091 [ConfigurationProperty("hibernateProperties")]
00092 public NameValueConfigurationCollection HibernateProperties
00093 {
00094 get { return (NameValueConfigurationCollection)base["hibernateProperties"]; }
00095 set { base["hibernateProperties"] = value; }
00096 }
00097
00099 [ConfigurationProperty("mappings")]
00100 public MappingCollection Mappings
00101 {
00102 get { return (MappingCollection)this["mappings"]; }
00103 set { base["mappings"] = value; }
00104 }
00105 }
00106 }