public FetchSelectScenario(ISessionFactory factory) { this.factory = factory; using (ISession s = factory.OpenSession()) { using (ITransaction t = s.BeginTransaction()) { var entity = new Derived1 { ShortContent = "Short", LongContent = "LongLongLongLongLong", }; s.Save(entity); t.Commit(); } } }
public FetchSelectScenario(ISessionFactory factory) { this.factory = factory; using (ISession s = factory.OpenSession()) { using (ITransaction t = s.BeginTransaction()) { var entity = new Derived1 { ShortContent = "Short", LongContent = "LongLongLongLongLong", }; s.Save(entity); t.Commit(); } } }