Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeersdetaillinelineseq(ref DataRow row, Oeersdetaillinelineseq entity)
 {
     row.SetField("lineno", entity.lineno);
     row.SetField("qtymult", entity.qtymult);
     row.SetField("selqtyord", entity.selqtyord);
     row.SetField("seqno", entity.seqno);
     row.SetField("prod", entity.prod);
     row.SetField("selqtyreq", entity.selqtyreq);
     row.SetField("qtysel", entity.qtysel);
     row.SetField("serlottype", entity.serlottype);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Oeersdetaillinelineseq BuildOeersdetaillinelineseqFromRow(DataRow row)
        {
            Oeersdetaillinelineseq entity = new Oeersdetaillinelineseq();

            entity.lineno     = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.qtymult    = row.IsNull("qtymult") ? decimal.Zero : row.Field <decimal>("qtymult");
            entity.selqtyord  = row.IsNull("selqtyord") ? decimal.Zero : row.Field <decimal>("selqtyord");
            entity.seqno      = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.prod       = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.selqtyreq  = row.IsNull("selqtyreq") ? decimal.Zero : row.Field <decimal>("selqtyreq");
            entity.qtysel     = row.IsNull("qtysel") ? decimal.Zero : row.Field <decimal>("qtysel");
            entity.serlottype = row.IsNull("serlottype") ? string.Empty : row.Field <string>("serlottype");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }