Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtiareptapprove(ref DataRow row, Wtiareptapprove entity)
 {
     row.SetField("rowid-wteh", entity.rowidWteh.ToByteArray());
     row.SetField("approvefl", entity.approvefl);
     row.SetField("security", entity.security);
     row.SetField("autoprintfl", entity.autoprintfl);
     row.SetField("pickprintfl", entity.pickprintfl);
     row.SetField("printernmwt", entity.printernmwt);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Wtiareptapprove BuildWtiareptapproveFromRow(DataRow row)
        {
            Wtiareptapprove entity = new Wtiareptapprove();

            entity.rowidWteh   = row.Field <byte[]>("rowid-wteh").ToStringEncoded();
            entity.approvefl   = row.Field <bool>("approvefl");
            entity.security    = row.IsNull("security") ? 0 : row.Field <int>("security");
            entity.autoprintfl = row.Field <bool>("autoprintfl");
            entity.pickprintfl = row.Field <bool>("pickprintfl");
            entity.printernmwt = row.IsNull("printernmwt") ? string.Empty : row.Field <string>("printernmwt");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }