Пример #1
0
 // Update
 public static void DemoAUpdate()
 {
     Debug.Print("--- DemoAUpdate ---");
     // KlasseA ändert Attribute
     Data.Product klasseA1 = Data.Product.GetProoductById(1);
     klasseA1.Name = "Artikel 1 nach Update";
     klasseA1.Update();
 }
Пример #2
0
        public static void DemoACreateKurz()
        {
            Data.Product product = new Data.Product {
                Name = "Artikel 3", Description = "Beschreibung Artikel 3", Manufacturer = "Hersteller 3", Price = 1999.95, LastArrival = DateTime.Today, IsOnStock = true
            };
            Int64 productId = product.Create();

            Debug.Print("Artikel erstellt mit Id:" + productId);
        }
Пример #3
0
        // Create
        public static void DemoACreate()
        {
            Debug.Print("--- DemoACreate ---");
            // KlasseA
            Data.Product product = new Data.Product();

            product.ArticleNumber = 1234567;
            product.Name          = "Aspire C993";
            product.Description   = "3GHZ CPU";
            product.Manufacturer  = "ACER";
            product.Price         = 1299.90;
            product.LastArrival   = DateTime.Today;
            product.IsOnStock     = true;

            Int64 productId = product.Create();

            Debug.Print("Artikel erstellt mit Id:" + productId);
        }