コード例 #1
0
        public static void InsertProductType(string ProductType, string Description)
        {
            int max = db.MsProductTypes.Max(x => x.ID);

            db.MsProductTypes.Add(ProductTypeFactory.initProduct(++max, ProductType, Description));
            db.SaveChanges();
        }