Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAuthpointsecurityresults(ref DataRow row, Authpointsecurityresults entity)
 {
     row.SetField("oper2", entity.oper2);
     row.SetField("opername", entity.opername);
     row.SetField("functionname", entity.functionname);
     row.SetField("sectionname", entity.sectionname);
     row.SetField("pointname", entity.pointname);
     row.SetField("modename", entity.modename);
     row.SetField("transtype", entity.transtype);
     row.SetField("descrip", entity.descrip);
     row.SetField("attemptdt", entity.attemptdt);
     row.SetField("attempttm", entity.attempttm);
     row.SetField("activefl", entity.activefl);
     row.SetField("securcd", entity.securcd);
     row.SetField("superfl", entity.superfl);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("updatestatus", entity.updatestatus);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Authpointsecurityresults BuildAuthpointsecurityresultsFromRow(DataRow row)
        {
            Authpointsecurityresults entity = new Authpointsecurityresults();

            entity.oper2        = row.IsNull("oper2") ? string.Empty : row.Field <string>("oper2");
            entity.opername     = row.IsNull("opername") ? string.Empty : row.Field <string>("opername");
            entity.functionname = row.IsNull("functionname") ? string.Empty : row.Field <string>("functionname");
            entity.sectionname  = row.IsNull("sectionname") ? string.Empty : row.Field <string>("sectionname");
            entity.pointname    = row.IsNull("pointname") ? string.Empty : row.Field <string>("pointname");
            entity.modename     = row.IsNull("modename") ? string.Empty : row.Field <string>("modename");
            entity.transtype    = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.descrip      = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.attemptdt    = row.Field <DateTime?>("attemptdt");
            entity.attempttm    = row.IsNull("attempttm") ? string.Empty : row.Field <string>("attempttm");
            entity.activefl     = row.Field <bool>("activefl");
            entity.securcd      = row.IsNull("securcd") ? 0 : row.Field <int>("securcd");
            entity.superfl      = row.Field <bool>("superfl");
            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.updatestatus = row.IsNull("updatestatus") ? string.Empty : row.Field <string>("updatestatus");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }