Beispiel #1
0
        static Order()
        {
            var existingRecordsCount1 = DBManipulator.getRecordsCount("orders");
            var existingRecordsCount2 = DBManipulator.getRecordsCount("employees");

            ordId  = existingRecordsCount1 == -1 ? 1 : ++existingRecordsCount1;
            emplId = existingRecordsCount2 == -1 ? 1 : existingRecordsCount2;
        }
        static Product()
        {
            var existingRecordsCount1 = DBManipulator.getRecordsCount("products");
            var existingRecordsCount2 = DBManipulator.getRecordsCount("orders_products");

            Id        = existingRecordsCount1 == -1 ? 1 : ++existingRecordsCount1;
            ProdOrdId = existingRecordsCount2 == -1 ? 1 : ++existingRecordsCount2;
        }
Beispiel #3
0
        static Contact()
        {
            var existingRecordsCount = DBManipulator.getRecordsCount("contacts");

            Id = existingRecordsCount == -1 ? 1 : ++existingRecordsCount;
        }
        static Employee()
        {
            var existingRecordsCount = DBManipulator.getRecordsCount("employees");

            Id = existingRecordsCount == -1 ? 1 : ++existingRecordsCount;
        }
        static OnlineCosmeticShop()
        {
            var existingRecordsCount = DBManipulator.getRecordsCount("shops");

            Id = existingRecordsCount == -1 ? 1 : ++existingRecordsCount;
        }