예제 #1
0
 private static void Check(EntityModel.Customer item)
 {
     if (item == null)
     {
         throw new ArgumentNullException(nameof(item));
     }
 }
예제 #2
0
        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
        }
예제 #3
0
 public void UpdateOperator(EntityModel.Customer getcustomer, int customerid)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 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));
 }