示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcebbuildprodlistcriteria(ref DataRow row, Icebbuildprodlistcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("fromprod", entity.fromprod);
     row.SetField("toprod", entity.toprod);
     row.SetField("userfield", entity.userfield);
     row.SetField("recordcountlimit", entity.recordcountlimit);
 }
示例#2
0
        public static Icebbuildprodlistcriteria BuildIcebbuildprodlistcriteriaFromRow(DataRow row)
        {
            Icebbuildprodlistcriteria entity = new Icebbuildprodlistcriteria();

            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.fromprod         = row.IsNull("fromprod") ? string.Empty : row.Field <string>("fromprod");
            entity.toprod           = row.IsNull("toprod") ? string.Empty : row.Field <string>("toprod");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            return(entity);
        }