Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGetlabelprintitemresults(ref DataRow row, Getlabelprintitemresults entity)
 {
     row.SetField("abs_num", entity.absNum);
     row.SetField("prod_grp", entity.prodGrp);
     row.SetField("item_desc", entity.itemDesc);
     row.SetField("rowID", entity.rowID.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Getlabelprintitemresults BuildGetlabelprintitemresultsFromRow(DataRow row)
        {
            Getlabelprintitemresults entity = new Getlabelprintitemresults();

            entity.absNum    = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num");
            entity.prodGrp   = row.IsNull("prod_grp") ? string.Empty : row.Field <string>("prod_grp");
            entity.itemDesc  = row.IsNull("item_desc") ? string.Empty : row.Field <string>("item_desc");
            entity.rowID     = row.Field <byte[]>("rowID").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }