示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAuditinqauditresults(ref DataRow row, Auditinqauditresults entity)
 {
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("transproc", entity.transproc);
     row.SetField("fieldschanged", entity.fieldschanged);
     row.SetField("recordkey", entity.recordkey);
     row.SetField("audit-rowid", entity.auditRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Auditinqauditresults BuildAuditinqauditresultsFromRow(DataRow row)
        {
            Auditinqauditresults entity = new Auditinqauditresults();

            entity.transdt       = row.Field <DateTime?>("transdt");
            entity.transtm       = row.IsNull("transtm") ? string.Empty : row.Field <string>("transtm");
            entity.operinit      = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transproc     = row.IsNull("transproc") ? string.Empty : row.Field <string>("transproc");
            entity.fieldschanged = row.IsNull("fieldschanged") ? string.Empty : row.Field <string>("fieldschanged");
            entity.recordkey     = row.IsNull("recordkey") ? string.Empty : row.Field <string>("recordkey");
            entity.auditRowid    = row.Field <byte[]>("audit-rowid").ToStringEncoded();
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }