public static void CreateAndPopulatePeopleTable() { ActiveRecordStarter.Initialize( ConfigurationSettings.GetConfig("activerecord") as IConfigurationSource, typeof(SimplePerson)); ActiveRecordStarter.CreateSchema(); using (new SessionScope()) { for (int i = 1; i <= 15; i++) { SimplePerson person = new SimplePerson(); person.Name = "Name " + i.ToString(); person.Age = i; person.Save(); } } }