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);
 }
예제 #4
0
 /// <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;
 }
예제 #5
0
 /// <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);
 }