Esempio n. 1
0
		public void Application_OnStart()
		{
			ActiveRecordStarter.Initialize(ActiveRecordSectionHandler.Instance,
							   new Type[] { typeof(MyEntity) });

			ActiveRecordStarter.CreateSchema();
			
			using(new SessionScope())
			{
				for (int i = 0; i < 200; i++)
				{
					MyEntity e = new MyEntity();
					e.Name = "Entity " + (i + 1);
					e.Index = i;
					e.Create();
				}
			}
		}