Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPtxtranslinedetailcriteria(ref DataRow row, Ptxtranslinedetailcriteria entity)
 {
     row.SetField("distpartnerid", entity.distpartnerid);
     row.SetField("distinvno", entity.distinvno);
     row.SetField("distinvsuf", entity.distinvsuf);
     row.SetField("distinvseqno", entity.distinvseqno);
     row.SetField("distinvlineno", entity.distinvlineno);
     row.SetField("rwidtranshdr", entity.rwidtranshdr.ToByteArray());
 }
Esempio n. 2
0
        public static Ptxtranslinedetailcriteria BuildPtxtranslinedetailcriteriaFromRow(DataRow row)
        {
            Ptxtranslinedetailcriteria entity = new Ptxtranslinedetailcriteria();

            entity.distpartnerid = row.IsNull("distpartnerid") ? string.Empty : row.Field <string>("distpartnerid");
            entity.distinvno     = row.IsNull("distinvno") ? 0 : row.Field <int>("distinvno");
            entity.distinvsuf    = row.IsNull("distinvsuf") ? 0 : row.Field <int>("distinvsuf");
            entity.distinvseqno  = row.IsNull("distinvseqno") ? 0 : row.Field <int>("distinvseqno");
            entity.distinvlineno = row.IsNull("distinvlineno") ? 0 : row.Field <int>("distinvlineno");
            entity.rwidtranshdr  = row.Field <byte[]>("rwidtranshdr").ToStringEncoded();
            return(entity);
        }