private void CreateAccountCategory(string description, string name) { AccountCategory category = ObjectSpace.CreateObject <AccountCategory>(); category.Description = description; category.Name = name; category.Save(); category.Session.CommitTransaction(); }