Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptgrouplookupresults(ref DataRow row, Reptgrouplookupresults entity)
 {
     row.SetField("batchnm", entity.batchnm);
     row.SetField("cono", entity.cono);
     row.SetField("priority", entity.priority);
     row.SetField("reportnm", entity.reportnm);
     row.SetField("rpttitle", entity.rpttitle);
     row.SetField("currproc", entity.currproc);
     row.SetField("sapb-rowid", entity.sapbRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Reptgrouplookupresults BuildReptgrouplookupresultsFromRow(DataRow row)
        {
            Reptgrouplookupresults entity = new Reptgrouplookupresults();

            entity.batchnm   = row.IsNull("batchnm") ? string.Empty : row.Field <string>("batchnm");
            entity.cono      = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.priority  = row.IsNull("priority") ? 0 : row.Field <int>("priority");
            entity.reportnm  = row.IsNull("reportnm") ? string.Empty : row.Field <string>("reportnm");
            entity.rpttitle  = row.IsNull("rpttitle") ? string.Empty : row.Field <string>("rpttitle");
            entity.currproc  = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.sapbRowid = row.Field <byte[]>("sapb-rowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }