示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeblanketdeleteorders(ref DataRow row, Oeblanketdeleteorders entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("transtype", entity.transtype);
     row.SetField("stagecd", entity.stagecd);
 }
示例#2
0
        public static Oeblanketdeleteorders BuildOeblanketdeleteordersFromRow(DataRow row)
        {
            Oeblanketdeleteorders entity = new Oeblanketdeleteorders();

            entity.orderno   = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf  = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.transtype = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.stagecd   = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            return(entity);
        }