예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIclotlookupcriteria(ref DataRow row, Iclotlookupcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("lotno", entity.lotno);
     row.SetField("statustype", entity.statustype);
     row.SetField("recordlimit", entity.recordlimit);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Iclotlookupcriteria BuildIclotlookupcriteriaFromRow(DataRow row)
        {
            Iclotlookupcriteria entity = new Iclotlookupcriteria();

            entity.whse        = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prod        = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.lotno       = row.IsNull("lotno") ? string.Empty : row.Field <string>("lotno");
            entity.statustype  = row.IsNull("statustype") ? string.Empty : row.Field <string>("statustype");
            entity.recordlimit = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }