private static void Check(EntityModel.Customer item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } }
public void InsertOperator(EntityModel.Customer getcustomer) { #region Define the Base Insert Operator By Serviceconfig f**k this shit _getDaoManager.BeginTransaction(); try { _getbaseService.InsertOperator(getcustomer); _getDaoManager.CommitTransaction(); } catch { _getDaoManager.RollBackTransaction(); throw; } #endregion #region the Base Handle //if (_getsqlmaper != null) //{ // _getsqlmaper.BeginTransaction(); // try // { // _getsqlmaper.Insert("InsertCustomer", getcustomer); // _getsqlmaper.CommitTransaction(); // } // catch // { // _getsqlmaper.RollBackTransaction(); // throw; // } //} #endregion }
public void UpdateOperator(EntityModel.Customer getcustomer, int customerid) { throw new NotImplementedException(); }
internal static Customer ToObject(EntityModel.Customer customer) { return(customer == null ? null : new Customer(customer.Customer_Id, customer.Customer_First_name, customer.Customer_Last_Name, customer.Phone_number)); }