Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcxrefreferlookupcriteria(ref DataRow row, Icxrefreferlookupcriteria entity)
 {
     row.SetField("byreference", entity.byreference);
     row.SetField("prod", entity.prod);
     row.SetField("type", entity.type);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Icxrefreferlookupcriteria BuildIcxrefreferlookupcriteriaFromRow(DataRow row)
        {
            Icxrefreferlookupcriteria entity = new Icxrefreferlookupcriteria();

            entity.byreference      = row.Field <bool>("byreference");
            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.type             = row.IsNull("type") ? string.Empty : row.Field <string>("type");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }