private static void SMOTest() { Console.Clear(); Console.WriteLine("Performing test using SMO..."); Console.WriteLine("Adding some test weapons to the database, please wait..."); var service = new DataServices(DataServiceTypes.SMO); service.CheckDatabaseAction(true); foreach (var weapon in GetSampleWeapons()) { service.Weapons.AddEntity(weapon); } Console.WriteLine("Test Weapons added, press any key to display whats in the database."); Console.ReadKey(); foreach (var weapon in service.Weapons.GetAllEntities()) { Console.WriteLine(weapon.WeaponName); } }