Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeordercopyaddorder(ref DataRow row, Oeordercopyaddorder entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("beglineno", entity.beglineno);
     row.SetField("endlineno", entity.endlineno);
     row.SetField("newtranstype", entity.newtranstype);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Oeordercopyaddorder BuildOeordercopyaddorderFromRow(DataRow row)
        {
            Oeordercopyaddorder entity = new Oeordercopyaddorder();

            entity.orderno      = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf     = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.beglineno    = row.IsNull("beglineno") ? 0 : row.Field <int>("beglineno");
            entity.endlineno    = row.IsNull("endlineno") ? 0 : row.Field <int>("endlineno");
            entity.newtranstype = row.IsNull("newtranstype") ? string.Empty : row.Field <string>("newtranstype");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }