예제 #1
0
        /// <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);
        }
예제 #2
0
        public CustomerDemographicsDataContext GetDataContext(string CustomerTypeID, out string error)
        {
            CustomerDemographicsDataContext dataContext = new CustomerDemographicsDataContext();

            error = null;
            dataContext.modelNotifiedForCustomerDemographicsMain = GetCustomerDemographicsByID(CustomerTypeID, out error);


            return(dataContext);
        }