/// <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); }
public CustomersDataContext GetDataContext(string CustomerID, out string error) { CustomersDataContext dataContext = new CustomersDataContext(); error = null; dataContext.modelNotifiedForCustomersMain = GetCustomersByID(CustomerID, out error); return(dataContext); }