Exemple #1
0
      /// <summary>
      /// Update a database row from a class
      /// </summary>
      public static void UpdateRowFromOtettrackcriteria(ref DataRow row, Otettrackcriteria entity)
      {
         row.SetField("trackno", entity.trackno);
         row.SetField("vendno", entity.vendno);
         row.SetField("shipfmno", entity.shipfmno);
         row.SetField("contno", entity.contno);
         row.SetField("stagecd", entity.stagecd);
         row.SetField("userfield", entity.userfield);

      }
Exemple #2
0
 public static Otettrackcriteria BuildOtettrackcriteriaFromRow(DataRow row)
 {
    Otettrackcriteria entity = new Otettrackcriteria();
    entity.trackno = row.IsNull("trackno") ? 0 : row.Field<int>("trackno");
    entity.vendno = row.IsNull("vendno") ? decimal.Zero : row.Field<decimal>("vendno");
    entity.shipfmno = row.IsNull("shipfmno") ? 0 : row.Field<int>("shipfmno");
    entity.contno = row.IsNull("contno") ? string.Empty : row.Field<string>("contno");
    entity.stagecd = row.IsNull("stagecd") ? string.Empty : row.Field<string>("stagecd");
    entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field<string>("userfield");
    return entity;
 }