Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsebcompdelete(ref DataRow row, Icsebcompdelete entity)
 {
     row.SetField("rowid-oeelm", entity.rowidOeelm.ToByteArray());
     row.SetField("cono", entity.cono);
     row.SetField("ordertype", entity.ordertype);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("seqno", entity.seqno);
     row.SetField("bundleid", entity.bundleid);
     row.SetField("compseqno", entity.compseqno);
     row.SetField("inquirefl", entity.inquirefl);
     row.SetField("secure", entity.secure);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Icsebcompdelete BuildIcsebcompdeleteFromRow(DataRow row)
        {
            Icsebcompdelete entity = new Icsebcompdelete();

            entity.rowidOeelm = row.Field <byte[]>("rowid-oeelm").ToStringEncoded();
            entity.cono       = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.ordertype  = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.orderno    = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf   = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.lineno     = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.seqno      = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.bundleid   = row.IsNull("bundleid") ? string.Empty : row.Field <string>("bundleid");
            entity.compseqno  = row.IsNull("compseqno") ? 0 : row.Field <int>("compseqno");
            entity.inquirefl  = row.Field <bool>("inquirefl");
            entity.secure     = row.IsNull("secure") ? 0 : row.Field <int>("secure");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }