- basicsample.zip
- BasicSample
- BasicSample.Core
- BasicSample.Data
- BasicSample.resharper
- BasicSample.resharper.user
- BasicSample.sln
- BasicSample.Tests
- BasicSample.Web
- Solution Items
- enterprisesample.zip
- EnterpriseSample
- EnterpriseSample.Core
- EnterpriseSample.Data
- EnterpriseSample.Presenters
- EnterpriseSample.resharper
- EnterpriseSample.resharper.user
- EnterpriseSample.sln
- EnterpriseSample.Tests
- EnterpriseSample.Web
- ProjectBase.Data
- ProjectBase.Utils
- Solution Items
- nhibernatebestpractices_src.zip
- NHibernateSample
- NHibernateSample.Core
- NHibernateSample.Data
- NHibernateSample.sln
- NHibernateSample.Tests
- NHibernateSample.Web
- Solution Items
- Iesi.Collections.dll
- log4net.dll
- NHibernate.dll
- NHibernate.Generics.dll
- nunit.framework.dll
|
using System.Configuration;
using Configuration_StringValidator = System.Configuration.StringValidator;
namespace ProjectBase.Data
{
public class SessionFactoryElement : ConfigurationElement
{
public SessionFactoryElement() { }
public SessionFactoryElement(string name, string configPath) {
Name = name;
FactoryConfigPath = configPath;
}
[ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "Not Supplied")]
public string Name {
get { return (string)this["name"]; }
set { this["name"] = value; }
}
[ConfigurationProperty("factoryConfigPath", IsRequired = true, DefaultValue = "Not Supplied")]
public string FactoryConfigPath {
get { return (string)this["factoryConfigPath"]; }
set { this["factoryConfigPath"] = value; }
}
[ConfigurationProperty("isTransactional", IsRequired = false, DefaultValue = false)]
public bool IsTransactional {
get { return (bool)this["isTransactional"]; }
set { this["isTransactional"] = value; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.