Ejemplo n.º 1
0
 static OrderSet SharedLoad()
 {
     OrderSet result = new OrderSet();
     using (var ctx = new NWindDataContext())
     {
         DataLoadOptions options = new DataLoadOptions();
         options.LoadWith<Order>(order => order.Order_Details);
         ctx.LoadOptions = options;
         result.Orders.AddRange(ctx.Orders);
     }
     return result;
 }
Ejemplo n.º 2
0
        static OrderSet SharedLoad()
        {
            OrderSet result = new OrderSet();

            using (var ctx = new NWindDataContext())
            {
                DataLoadOptions options = new DataLoadOptions();
                options.LoadWith <Order>(order => order.Order_Details);
                ctx.LoadOptions = options;
                result.Orders.AddRange(ctx.Orders);
            }
            return(result);
        }
Ejemplo n.º 3
0
 public OrderSet RoundTripBar(OrderSet set)
 {
     return(set);
 }
Ejemplo n.º 4
0
 public OrderSet RoundTripFoo(OrderSet set)
 {
     return(set);
 }
Ejemplo n.º 5
0
 public OrderSet RoundTripBar(OrderSet set)
 {
     return set;
 }
Ejemplo n.º 6
0
 public OrderSet RoundTripFoo(OrderSet set)
 {
     return set;
 }