Пример #1
0
        internal static int CreatePriceList()
        {
            TechTestDataContext db = new TechTestDataContext();

            int maxID = (from distPriceList in db.DistributorPriceLists
                         select distPriceList.PriceListID).Max();
            maxID++;
            DistributorPriceList distributorPriceList = new DistributorPriceList() { PriceListID = maxID };

            db.DistributorPriceLists.InsertOnSubmit(distributorPriceList);
            db.SubmitChanges();
            return maxID;
        }
Пример #2
0
 partial void DeleteDistributorPriceList(DistributorPriceList instance);
Пример #3
0
 partial void UpdateDistributorPriceList(DistributorPriceList instance);
Пример #4
0
 partial void InsertDistributorPriceList(DistributorPriceList instance);