/// <summary> /// Empty data context is used when the from is loaded without ID (the from is in "insert mode") /// </summary> public ShippersDataContext GetEmptyDataContext(out string error) { ShippersDataContext dataContext = new ShippersDataContext(); error = null; dataContext.modelNotifiedForShippersMain = new ModelNotifiedForShippers();; return(dataContext); }
public ShippersDataContext GetDataContext(int ShipperID, out string error) { ShippersDataContext dataContext = new ShippersDataContext(); error = null; dataContext.modelNotifiedForShippersMain = GetShippersByID(ShipperID, out error); return(dataContext); }