Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtesshiptransfer(ref DataRow row, Wtesshiptransfer entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("autoreceivefl", entity.autoreceivefl);
     row.SetField("userfield", entity.userfield);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("stagecdx", entity.stagecdx);
     row.SetField("statusinfo", entity.statusinfo);
 }
Exemplo n.º 2
0
        public static Wtesshiptransfer BuildWtesshiptransferFromRow(DataRow row)
        {
            Wtesshiptransfer entity = new Wtesshiptransfer();

            entity.wtno          = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf         = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.jrnlno        = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.rowid         = row.Field <byte[]>("rowid").ToStringEncoded();
            entity.autoreceivefl = row.Field <bool>("autoreceivefl");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            entity.stagecd       = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.stagecdx      = row.IsNull("stagecdx") ? string.Empty : row.Field <string>("stagecdx");
            entity.statusinfo    = row.IsNull("statusinfo") ? string.Empty : row.Field <string>("statusinfo");
            return(entity);
        }