Esempio n. 1
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);
        }
Esempio n. 2
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);
        }