Beispiel #1
0
        public static Auditinqtablelist BuildAuditinqtablelistFromRow(DataRow row)
        {
            Auditinqtablelist entity = new Auditinqtablelist();

            entity.tablenm   = row.IsNull("tablenm") ? string.Empty : row.Field <string>("tablenm");
            entity.tabledesc = row.IsNull("tabledesc") ? string.Empty : row.Field <string>("tabledesc");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAuditinqtablelist(ref DataRow row, Auditinqtablelist entity)
 {
     row.SetField("tablenm", entity.tablenm);
     row.SetField("tabledesc", entity.tabledesc);
     row.SetField("userfield", entity.userfield);
 }