Example #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;
        }
 partial void DeleteDistributorPriceList(DistributorPriceList instance);
 partial void UpdateDistributorPriceList(DistributorPriceList instance);
 partial void InsertDistributorPriceList(DistributorPriceList instance);