Beispiel #1
0
 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();
         }
     }
 }
Beispiel #2
0
			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();
					}
				}
			}