/// <summary> /// Empty data context is used when the from is loaded without ID (the from is in "insert mode") /// </summary> public CustomerDemographicsDataContext GetEmptyDataContext(out string error) { CustomerDemographicsDataContext dataContext = new CustomerDemographicsDataContext(); error = null; dataContext.modelNotifiedForCustomerDemographicsMain = new ModelNotifiedForCustomerDemographics();; return(dataContext); }
public CustomerDemographicsDataContext GetDataContext(string CustomerTypeID, out string error) { CustomerDemographicsDataContext dataContext = new CustomerDemographicsDataContext(); error = null; dataContext.modelNotifiedForCustomerDemographicsMain = GetCustomerDemographicsByID(CustomerTypeID, out error); return(dataContext); }