public static tbl_Cus CreateCustomer(ICustomerView cus)
 {
     var customer = new tbl_Cus
                        {
                            Cus_ = cus.CusId,
                            CusLastname = cus.CusLastname,
                            CusFirstname = cus.CusFirstname,
                            CusUsr_ = cus.CusUsrId,
                            CusNumber = cus.CusNumber,
                            CusContactname = cus.Email,
                            CusIscompany = cus.CusIsCompany
                        };
     return customer;
 }
 /// <summary>
 /// Create a new tbl_Cus object.
 /// </summary>
 /// <param name="cus_">Initial value of the Cus_ property.</param>
 public static tbl_Cus Createtbl_Cus(global::System.Int32 cus_)
 {
     tbl_Cus tbl_Cus = new tbl_Cus();
     tbl_Cus.Cus_ = cus_;
     return tbl_Cus;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_Cus EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_Cus(tbl_Cus tbl_Cus)
 {
     base.AddObject("tbl_Cus", tbl_Cus);
 }
 public static ICustomerView CreateCustomer(tbl_Cus cus)
 {
     return CustomerFactory.createNew(cus.Cus_, cus.CusNumber, cus.CusFirstname, cus.CusLastname,
                                      cus.CusContactname,
                                      cus.CusUsr_, cus.CusIscompany);
 }