Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRsaddetail(ref DataRow row, Rsaddetail entity)
 {
     row.SetField("procmatch", entity.procmatch);
     row.SetField("queuenm", entity.queuenm);
     row.SetField("descrip", entity.descrip);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("rsadrowid", entity.rsadrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Rsaddetail BuildRsaddetailFromRow(DataRow row)
        {
            Rsaddetail entity = new Rsaddetail();

            entity.procmatch = row.IsNull("procmatch") ? string.Empty : row.Field <string>("procmatch");
            entity.queuenm   = row.IsNull("queuenm") ? string.Empty : row.Field <string>("queuenm");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.operinit  = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transdt   = row.Field <DateTime?>("transdt");
            entity.transtm   = row.IsNull("transtm") ? string.Empty : row.Field <string>("transtm");
            entity.rsadrowid = row.Field <byte[]>("rsadrowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }