Example #1
0
 public void AddTestData(TestModel model)
 {
     try
     {
         var parameters    = new string[] { "TypeName", "SelfService", "MinAge", "CreatedBy" };
         var sqlParameterd = _dbHelper.CreateSqlParamByObj(model, parameters);
         _dbHelper.ExecuteNonQuery("DevDB", "[Common].[Master_AddEmployeeType]", sqlParameterd);
     }
     catch (Exception ex)
     {
         var helper = new DataException(ex);
         throw helper.GetException();
     }
 }