Esempio n. 1
0
        /// <summary>
        /// Empty data context is used when the from is loaded without ID (the from is in "insert mode")
        /// </summary>
        public SuppliersDataContext GetEmptyDataContext(out string error)
        {
            SuppliersDataContext dataContext = new SuppliersDataContext();

            error = null;
            dataContext.modelNotifiedForSuppliersMain = new ModelNotifiedForSuppliers();;
            return(dataContext);
        }
Esempio n. 2
0
        public SuppliersDataContext GetDataContext(int SupplierID, out string error)
        {
            SuppliersDataContext dataContext = new SuppliersDataContext();

            error = null;
            dataContext.modelNotifiedForSuppliersMain = GetSuppliersByID(SupplierID, out error);


            return(dataContext);
        }