Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromUpdatepoea(ref DataRow row, Updatepoea entity)
 {
     row.SetField("ackrsn", entity.ackrsn);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("rowid-poeh", entity.rowidPoeh.ToByteArray());
     row.SetField("stagecd", entity.stagecd);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Updatepoea BuildUpdatepoeaFromRow(DataRow row)
        {
            Updatepoea entity = new Updatepoea();

            entity.ackrsn    = row.IsNull("ackrsn") ? string.Empty : row.Field <string>("ackrsn");
            entity.pono      = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf     = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.rowidPoeh = row.Field <byte[]>("rowid-poeh").ToStringEncoded();
            entity.stagecd   = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }