Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromTiecreatetiettcriteria(ref DataRow row, Tiecreatetiettcriteria entity)
 {
     row.SetField("tietype", entity.tietype);
     row.SetField("docorderno", entity.docorderno);
     row.SetField("docordersuf", entity.docordersuf);
     row.SetField("doclineno", entity.doclineno);
     row.SetField("docseqno", entity.docseqno);
     row.SetField("cono2", entity.cono2);
     row.SetField("prod", entity.prod);
     row.SetField("nonstockty", entity.nonstockty);
 }
Exemplo n.º 2
0
        public static Tiecreatetiettcriteria BuildTiecreatetiettcriteriaFromRow(DataRow row)
        {
            Tiecreatetiettcriteria entity = new Tiecreatetiettcriteria();

            entity.tietype     = row.IsNull("tietype") ? string.Empty : row.Field <string>("tietype");
            entity.docorderno  = row.IsNull("docorderno") ? 0 : row.Field <int>("docorderno");
            entity.docordersuf = row.IsNull("docordersuf") ? 0 : row.Field <int>("docordersuf");
            entity.doclineno   = row.IsNull("doclineno") ? 0 : row.Field <int>("doclineno");
            entity.docseqno    = row.IsNull("docseqno") ? 0 : row.Field <int>("docseqno");
            entity.cono2       = row.IsNull("cono2") ? 0 : row.Field <int>("cono2");
            entity.prod        = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.nonstockty  = row.IsNull("nonstockty") ? string.Empty : row.Field <string>("nonstockty");
            return(entity);
        }