예제 #1
0
      /// <summary>
      /// Update a database row from a class
      /// </summary>
      public static void UpdateRowFromIcreportnumberlookupresults(ref DataRow row, Icreportnumberlookupresults entity)
      {
         row.SetField("reportno", entity.reportno);
         row.SetField("noprods", entity.noprods);
         row.SetField("warehouses", entity.warehouses);
         row.SetField("transdt", entity.transdt);
         row.SetField("icama-rowid", entity.icamaRowid.ToByteArray());
         row.SetField("userfield", entity.userfield);

      }
예제 #2
0
 public static Icreportnumberlookupresults BuildIcreportnumberlookupresultsFromRow(DataRow row)
 {
    Icreportnumberlookupresults entity = new Icreportnumberlookupresults();
    entity.reportno = row.IsNull("reportno") ? 0 : row.Field<int>("reportno");
    entity.noprods = row.IsNull("noprods") ? 0 : row.Field<int>("noprods");
    entity.warehouses = row.IsNull("warehouses") ? string.Empty : row.Field<string>("warehouses");
    entity.transdt = row.Field<DateTime?>("transdt");
    entity.icamaRowid = row.Field<byte[]>("icama-rowid").ToStringEncoded();
    entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field<string>("userfield");
    return entity;
 }