Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEtccdetdatacriteria(ref DataRow row, Etccdetdatacriteria entity)
 {
     row.SetField("sxxmldoc-rowid", entity.sxxmldocRowid.ToByteArray());
     row.SetField("section", entity.section);
     row.SetField("rcvdfl", entity.rcvdfl);
     row.SetField("processedfl", entity.processedfl);
     row.SetField("origfl", entity.origfl);
     row.SetField("histfl", entity.histfl);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Etccdetdatacriteria BuildEtccdetdatacriteriaFromRow(DataRow row)
        {
            Etccdetdatacriteria entity = new Etccdetdatacriteria();

            entity.sxxmldocRowid = row.Field <byte[]>("sxxmldoc-rowid").ToStringEncoded();
            entity.section       = row.IsNull("section") ? string.Empty : row.Field <string>("section");
            entity.rcvdfl        = row.Field <bool>("rcvdfl");
            entity.processedfl   = row.Field <bool>("processedfl");
            entity.origfl        = row.Field <bool>("origfl");
            entity.histfl        = row.Field <bool>("histfl");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }