Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSlehlookupresults(ref DataRow row, Slehlookupresults entity)
 {
     row.SetField("imptype", entity.imptype);
     row.SetField("impdescrip", entity.impdescrip);
     row.SetField("slupdtno", entity.slupdtno);
     row.SetField("statusty", entity.statusty);
     row.SetField("issuedt", entity.issuedt);
     row.SetField("slehrowid", entity.slehrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Slehlookupresults BuildSlehlookupresultsFromRow(DataRow row)
        {
            Slehlookupresults entity = new Slehlookupresults();

            entity.imptype    = row.IsNull("imptype") ? string.Empty : row.Field <string>("imptype");
            entity.impdescrip = row.IsNull("impdescrip") ? string.Empty : row.Field <string>("impdescrip");
            entity.slupdtno   = row.IsNull("slupdtno") ? string.Empty : row.Field <string>("slupdtno");
            entity.statusty   = row.IsNull("statusty") ? string.Empty : row.Field <string>("statusty");
            entity.issuedt    = row.Field <DateTime?>("issuedt");
            entity.slehrowid  = row.Field <byte[]>("slehrowid").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }