Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeesshipordermultiple(ref DataRow row, Oeesshipordermultiple entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("ibrsfl", entity.ibrsfl);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("errorfl", entity.errorfl);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Oeesshipordermultiple BuildOeesshipordermultipleFromRow(DataRow row)
        {
            Oeesshipordermultiple entity = new Oeesshipordermultiple();

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