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); }
protected override void Configure(Configuration configuration) { cfg.SetProperty(Environment.DefaultEntityMode, EntityModeHelper.ToString(EntityMode.Xml)); }
protected override void Configure(Configuration configuration) { base.Configure(configuration); configuration.SetProperty("default_entity_mode", EntityModeHelper.ToString(EntityMode.Map)); }