示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArbchlookupcriteria(ref DataRow row, Arbchlookupcriteria entity)
 {
     row.SetField("batch", entity.batch);
     row.SetField("custno", entity.custno);
     row.SetField("checkno", entity.checkno);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Arbchlookupcriteria BuildArbchlookupcriteriaFromRow(DataRow row)
        {
            Arbchlookupcriteria entity = new Arbchlookupcriteria();

            entity.batch            = row.IsNull("batch") ? string.Empty : row.Field <string>("batch");
            entity.custno           = row.IsNull("custno") ? 0 : row.Field <int>("custno");
            entity.checkno          = row.IsNull("checkno") ? 0 : row.Field <int>("checkno");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }