Example #1
0
        public void TestFixtureSetUp()
        {
            cfg = new Configuration();
            cfg.Configure();
            cfg.AddResource("LessThanGoF.Prototype.ProductLine.hbm.xml", typeof(PrototypeSystemFixture).Assembly);
            new SchemaExport(cfg).Create(false, true);

            cfg.SetProperty("default_entity_mode", EntityModeHelper.ToString(EntityMode.Map));

            sessions = (ISessionFactoryImplementor)cfg.BuildSessionFactory();
        }
 public IFluentSessionFactoryConfiguration Using(EntityMode entityMode)
 {
     configuration.SetProperty(Environment.DefaultEntityMode, EntityModeHelper.ToString(entityMode));
     return(this);
 }
Example #3
0
 protected override void Configure(Configuration configuration)
 {
     cfg.SetProperty(Environment.DefaultEntityMode, EntityModeHelper.ToString(EntityMode.Xml));
 }
Example #4
0
 protected override void Configure(Configuration configuration)
 {
     base.Configure(configuration);
     configuration.SetProperty("default_entity_mode", EntityModeHelper.ToString(EntityMode.Map));
 }