예제 #1
0
        private static void BrandUpdateTest(ref BrandManager brandManager)
        {
            var entity = brandManager.GetAllByName("Skoda")?.Data.SingleOrDefault();

            entity.BrandName = "Volkswagen";
            brandManager.Update(entity);
        }
예제 #2
0
 private static void BrandtGetTest(ref BrandManager brandManager)
 {
     foreach (var brand in brandManager.GetAllByName("Volkswagen").Data)
     {
         Console.WriteLine(brand.BrandName);
     }
 }
예제 #3
0
        private static void BrandtDeleteTest(ref BrandManager brandManager)
        {
            var entity = brandManager.GetAllByName("Reno")?.Data.SingleOrDefault();

            brandManager.Delete(entity);
        }