Пример #1
0
		protected override void OnSetUp()
		{
			using (ISession session = OpenSession())
			{
				for (int x = 0; x < 10; x++)
				{
					var ci = new CostItem() { Units = x };
					session.Save(ci);
				}

				session.Flush();
			}
		}
Пример #2
0
        protected override void OnSetUp()
        {
            using (ISession session = OpenSession())
            {
                for (int x = 0; x < 10; x++)
                {
                    var ci = new CostItem()
                    {
                        Units = x
                    };
                    session.Save(ci);
                }

                session.Flush();
            }
        }