Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEtccdeterrorscriteria(ref DataRow row, Etccdeterrorscriteria entity)
 {
     row.SetField("sxxmldoc-rowid", entity.sxxmldocRowid.ToByteArray());
     row.SetField("refresherrors", entity.refresherrors);
     row.SetField("erronly", entity.erronly);
     row.SetField("level", entity.level);
     row.SetField("linenohidden", entity.linenohidden);
     row.SetField("lineno", entity.lineno);
     row.SetField("showall", entity.showall);
     row.SetField("showerrors", entity.showerrors);
     row.SetField("showexceptions", entity.showexceptions);
     row.SetField("showinfor", entity.showinfor);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Etccdeterrorscriteria BuildEtccdeterrorscriteriaFromRow(DataRow row)
        {
            Etccdeterrorscriteria entity = new Etccdeterrorscriteria();

            entity.sxxmldocRowid  = row.Field <byte[]>("sxxmldoc-rowid").ToStringEncoded();
            entity.refresherrors  = row.Field <bool>("refresherrors");
            entity.erronly        = row.Field <bool>("erronly");
            entity.level          = row.IsNull("level") ? string.Empty : row.Field <string>("level");
            entity.linenohidden   = row.Field <bool>("linenohidden");
            entity.lineno         = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.showall        = row.Field <bool>("showall");
            entity.showerrors     = row.Field <bool>("showerrors");
            entity.showexceptions = row.Field <bool>("showexceptions");
            entity.showinfor      = row.Field <bool>("showinfor");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }