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

            error = null;
            dataContext.modelNotifiedForCustomersMain = new ModelNotifiedForCustomers();;
            return(dataContext);
        }
示例#2
0
        public CustomersDataContext GetDataContext(string CustomerID, out string error)
        {
            CustomersDataContext dataContext = new CustomersDataContext();

            error = null;
            dataContext.modelNotifiedForCustomersMain = GetCustomersByID(CustomerID, out error);


            return(dataContext);
        }