示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasprulelookupcriteria(ref DataRow row, Vasprulelookupcriteria entity)
 {
     row.SetField("shipprod", entity.shipprod);
     row.SetField("whse", entity.whse);
     row.SetField("verno", entity.verno);
     row.SetField("segment", entity.segment);
     row.SetField("noupdatefl", entity.noupdatefl);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Vasprulelookupcriteria BuildVasprulelookupcriteriaFromRow(DataRow row)
        {
            Vasprulelookupcriteria entity = new Vasprulelookupcriteria();

            entity.shipprod         = row.IsNull("shipprod") ? string.Empty : row.Field <string>("shipprod");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.verno            = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            entity.segment          = row.IsNull("segment") ? 0 : row.Field <int>("segment");
            entity.noupdatefl       = row.Field <bool>("noupdatefl");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }