Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGetcrossrefcriteria(ref DataRow row, Getcrossrefcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("vend_item", entity.vendItem);
     row.SetField("abs_num", entity.absNum);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("getcrossrefcriteriauserfield", entity.getcrossrefcriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Getcrossrefcriteria BuildGetcrossrefcriteriaFromRow(DataRow row)
        {
            Getcrossrefcriteria entity = new Getcrossrefcriteria();

            entity.coNum                        = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum                        = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.vendorId                     = row.IsNull("vendor_id") ? string.Empty : row.Field <string>("vendor_id");
            entity.vendItem                     = row.IsNull("vend_item") ? string.Empty : row.Field <string>("vend_item");
            entity.absNum                       = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num");
            entity.recordcountlimit             = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.getcrossrefcriteriauserfield = row.IsNull("getcrossrefcriteriauserfield") ? string.Empty : row.Field <string>("getcrossrefcriteriauserfield");
            entity.userfield                    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }