Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSabatchlookupcriteria(ref DataRow row, Sabatchlookupcriteria entity)
 {
     row.SetField("batchnm", entity.batchnm);
     row.SetField("modulenm", entity.modulenm);
     row.SetField("oper", entity.oper);
     row.SetField("use-oper", entity.useOper);
     row.SetField("recordcountlimit", entity.recordcountlimit);
 }
Example #2
0
        public static Sabatchlookupcriteria BuildSabatchlookupcriteriaFromRow(DataRow row)
        {
            Sabatchlookupcriteria entity = new Sabatchlookupcriteria();

            entity.batchnm          = row.IsNull("batchnm") ? string.Empty : row.Field <string>("batchnm");
            entity.modulenm         = row.IsNull("modulenm") ? string.Empty : row.Field <string>("modulenm");
            entity.oper             = row.IsNull("oper") ? string.Empty : row.Field <string>("oper");
            entity.useOper          = row.IsNull("use-oper") ? string.Empty : row.Field <string>("use-oper");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            return(entity);
        }