/// <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); }
public SuppliersDataContext GetDataContext(int SupplierID, out string error) { SuppliersDataContext dataContext = new SuppliersDataContext(); error = null; dataContext.modelNotifiedForSuppliersMain = GetSuppliersByID(SupplierID, out error); return(dataContext); }