예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaeubuildvalistcriteria(ref DataRow row, Vaeubuildvalistcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Vaeubuildvalistcriteria BuildVaeubuildvalistcriteriaFromRow(DataRow row)
        {
            Vaeubuildvalistcriteria entity = new Vaeubuildvalistcriteria();

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