public void Insert(string CustomerTypeID, string CustomerDesc)
        {
            CustomerDemographic item = new CustomerDemographic();

            item.CustomerTypeID = CustomerTypeID;

            item.CustomerDesc = CustomerDesc;


            item.Save(UserName);
        }
        public void Update(string CustomerTypeID, string CustomerDesc)
        {
            CustomerDemographic item = new CustomerDemographic();

            item.MarkOld();
            item.IsLoaded = true;

            item.CustomerTypeID = CustomerTypeID;

            item.CustomerDesc = CustomerDesc;

            item.Save(UserName);
        }
 public bool Destroy(object CustomerTypeID)
 {
     return(CustomerDemographic.Destroy(CustomerTypeID) == 1);
 }
 /// <summary>
 /// Create a new CustomerDemographic object.
 /// </summary>
 /// <param name="customerTypeID">Initial value of the CustomerTypeID property.</param>
 public static CustomerDemographic CreateCustomerDemographic(global::System.String customerTypeID)
 {
     CustomerDemographic customerDemographic = new CustomerDemographic();
     customerDemographic.CustomerTypeID = customerTypeID;
     return customerDemographic;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerDemographics EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerDemographics(CustomerDemographic customerDemographic)
 {
     base.AddObject("CustomerDemographics", customerDemographic);
 }