Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOelinecommsubtotresults(ref DataRow row, Oelinecommsubtotresults entity)
 {
     row.SetField("lineno", entity.lineno);
     row.SetField("intseqno", entity.intseqno);
     row.SetField("linetype", entity.linetype);
     row.SetField("seqno", entity.seqno);
     row.SetField("origlinetype", entity.origlinetype);
     row.SetField("origintseqno", entity.origintseqno);
     row.SetField("origseqno", entity.origseqno);
     row.SetField("dspllinetype", entity.dspllinetype);
     row.SetField("statuscd", entity.statuscd);
     row.SetField("descrip", entity.descrip);
     row.SetField("descrip1", entity.descrip1);
     row.SetField("linestatus", entity.linestatus);
     row.SetField("statusnm", entity.statusnm);
     row.SetField("rowid", entity.rowid.ToByteArray());
 }
Ejemplo n.º 2
0
        public static Oelinecommsubtotresults BuildOelinecommsubtotresultsFromRow(DataRow row)
        {
            Oelinecommsubtotresults entity = new Oelinecommsubtotresults();

            entity.lineno       = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.intseqno     = row.IsNull("intseqno") ? 0 : row.Field <int>("intseqno");
            entity.linetype     = row.IsNull("linetype") ? string.Empty : row.Field <string>("linetype");
            entity.seqno        = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.origlinetype = row.IsNull("origlinetype") ? string.Empty : row.Field <string>("origlinetype");
            entity.origintseqno = row.IsNull("origintseqno") ? 0 : row.Field <int>("origintseqno");
            entity.origseqno    = row.IsNull("origseqno") ? 0 : row.Field <int>("origseqno");
            entity.dspllinetype = row.IsNull("dspllinetype") ? string.Empty : row.Field <string>("dspllinetype");
            entity.statuscd     = row.IsNull("statuscd") ? string.Empty : row.Field <string>("statuscd");
            entity.descrip      = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.descrip1     = row.IsNull("descrip1") ? string.Empty : row.Field <string>("descrip1");
            entity.linestatus   = row.IsNull("linestatus") ? string.Empty : row.Field <string>("linestatus");
            entity.statusnm     = row.IsNull("statusnm") ? string.Empty : row.Field <string>("statusnm");
            entity.rowid        = row.Field <byte[]>("rowid").ToStringEncoded();
            return(entity);
        }