public EditCustomerAdminModel(tbl_Customer customer) : base(customer) { CustomerID = customer.CustomerID; DomainID = customer.CU_DomainID; Registered = customer.CU_Registered; IsDormant = customer.CU_IsDormant; adminNote = customer.CU_AdminNote; }
public EditCustomerModel(tbl_Customer customer) { Title = customer.CU_Title; FirstName = customer.CU_FirstName; Surname = customer.CU_Surname; Email = customer.CU_Email; Phone = customer.CU_Telephone; SubscribeNewsletter = customer.CU_Subscription; DetailsFor3rdParties = customer.CU_DetailsFor3rdParties; }
/// <summary> /// Create a new tbl_Customer object. /// </summary> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="cU_Email">Initial value of the CU_Email property.</param> /// <param name="cU_RegisterDate">Initial value of the CU_RegisterDate property.</param> /// <param name="cU_DomainID">Initial value of the CU_DomainID property.</param> /// <param name="cU_Subscription">Initial value of the CU_Subscription property.</param> /// <param name="cU_Registered">Initial value of the CU_Registered property.</param> /// <param name="cU_DetailsFor3rdParties">Initial value of the CU_DetailsFor3rdParties property.</param> /// <param name="cU_IsDormant">Initial value of the CU_IsDormant property.</param> public static tbl_Customer Createtbl_Customer(global::System.Int32 customerID, global::System.String cU_Email, global::System.DateTime cU_RegisterDate, global::System.Int32 cU_DomainID, global::System.Boolean cU_Subscription, global::System.Boolean cU_Registered, global::System.Boolean cU_DetailsFor3rdParties, global::System.Boolean cU_IsDormant) { tbl_Customer tbl_Customer = new tbl_Customer(); tbl_Customer.CustomerID = customerID; tbl_Customer.CU_Email = cU_Email; tbl_Customer.CU_RegisterDate = cU_RegisterDate; tbl_Customer.CU_DomainID = cU_DomainID; tbl_Customer.CU_Subscription = cU_Subscription; tbl_Customer.CU_Registered = cU_Registered; tbl_Customer.CU_DetailsFor3rdParties = cU_DetailsFor3rdParties; tbl_Customer.CU_IsDormant = cU_IsDormant; return tbl_Customer; }
/// <summary> /// Deprecated Method for adding a new object to the tbl_Customer EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbl_Customer(tbl_Customer tbl_Customer) { base.AddObject("tbl_Customer", tbl_Customer); }