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