Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEtccrowids(ref DataRow row, Etccrowids entity)
 {
     row.SetField("rwid", entity.rwid.ToByteArray());
     row.SetField("EDIHerrstatusty", entity.eDIHerrstatusty);
     row.SetField("EDIHupdstat", entity.eDIHupdstat);
     row.SetField("OEEHapprovty", entity.oEEHapprovty);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Etccrowids BuildEtccrowidsFromRow(DataRow row)
        {
            Etccrowids entity = new Etccrowids();

            entity.rwid            = row.Field <byte[]>("rwid").ToStringEncoded();
            entity.eDIHerrstatusty = row.IsNull("EDIHerrstatusty") ? string.Empty : row.Field <string>("EDIHerrstatusty");
            entity.eDIHupdstat     = row.IsNull("EDIHupdstat") ? string.Empty : row.Field <string>("EDIHupdstat");
            entity.oEEHapprovty    = row.IsNull("OEEHapprovty") ? string.Empty : row.Field <string>("OEEHapprovty");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }