/
TrippinProxy.cs
2733 lines (2707 loc) · 131 KB
/
TrippinProxy.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// Generation date: 4/13/2016 11:20:50 AM
namespace Microsoft.Restier.WebApi.Test.Services.Trippin.Models
{
/// <summary>
/// There are no comments for TrippinModel in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("TrippinModel")]
public partial class TrippinModel : global::Microsoft.OData.Client.DataServiceContext
{
/// <summary>
/// Initialize a new TrippinModel object.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public TrippinModel(global::System.Uri serviceRoot) :
base(serviceRoot, global::Microsoft.OData.Client.ODataProtocolVersion.V4)
{
this.ResolveName = new global::System.Func<global::System.Type, string>(this.ResolveNameFromType);
this.ResolveType = new global::System.Func<string, global::System.Type>(this.ResolveTypeFromName);
this.OnContextCreated();
this.Format.LoadServiceModel = GeneratedEdmModel.GetInstance;
this.Format.UseJson();
}
partial void OnContextCreated();
/// <summary>
/// Since the namespace configured for this service reference
/// in Visual Studio is different from the one indicated in the
/// server schema, use type-mappers to map between the two.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
protected global::System.Type ResolveTypeFromName(string typeName)
{
global::System.Type resolvedType = this.DefaultResolveType(typeName, "Microsoft.Restier.WebApi.Test.Services.Trippin.Models", "Microsoft.Restier.WebApi.Test.Services.Trippin.Models");
if ((resolvedType != null))
{
return resolvedType;
}
return null;
}
/// <summary>
/// Since the namespace configured for this service reference
/// in Visual Studio is different from the one indicated in the
/// server schema, use type-mappers to map between the two.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
protected string ResolveNameFromType(global::System.Type clientType)
{
global::Microsoft.OData.Client.OriginalNameAttribute originalNameAttribute = (global::Microsoft.OData.Client.OriginalNameAttribute)global::System.Linq.Enumerable.SingleOrDefault(global::Microsoft.OData.Client.Utility.GetCustomAttributes(clientType, typeof(global::Microsoft.OData.Client.OriginalNameAttribute), true));
if (clientType.Namespace.Equals("Microsoft.Restier.WebApi.Test.Services.Trippin.Models", global::System.StringComparison.Ordinal))
{
if (originalNameAttribute != null)
{
return string.Concat("Microsoft.Restier.WebApi.Test.Services.Trippin.Models.", originalNameAttribute.OriginalName);
}
return string.Concat("Microsoft.Restier.WebApi.Test.Services.Trippin.Models.", clientType.Name);
}
return null;
}
/// <summary>
/// There are no comments for Airlines in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Airlines")]
public global::Microsoft.OData.Client.DataServiceQuery<Airline> Airlines
{
get
{
if ((this._Airlines == null))
{
this._Airlines = base.CreateQuery<Airline>("Airlines");
}
return this._Airlines;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Airline> _Airlines;
/// <summary>
/// There are no comments for Airports in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Airports")]
public global::Microsoft.OData.Client.DataServiceQuery<Airport> Airports
{
get
{
if ((this._Airports == null))
{
this._Airports = base.CreateQuery<Airport>("Airports");
}
return this._Airports;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Airport> _Airports;
/// <summary>
/// There are no comments for Events in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Events")]
public global::Microsoft.OData.Client.DataServiceQuery<Event> Events
{
get
{
if ((this._Events == null))
{
this._Events = base.CreateQuery<Event>("Events");
}
return this._Events;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Event> _Events;
/// <summary>
/// There are no comments for Flights in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Flights")]
public global::Microsoft.OData.Client.DataServiceQuery<Flight> Flights
{
get
{
if ((this._Flights == null))
{
this._Flights = base.CreateQuery<Flight>("Flights");
}
return this._Flights;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Flight> _Flights;
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Orders")]
public global::Microsoft.OData.Client.DataServiceQuery<Order> Orders
{
get
{
if ((this._Orders == null))
{
this._Orders = base.CreateQuery<Order>("Orders");
}
return this._Orders;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Order> _Orders;
/// <summary>
/// There are no comments for People in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("People")]
public global::Microsoft.OData.Client.DataServiceQuery<Person> People
{
get
{
if ((this._People == null))
{
this._People = base.CreateQuery<Person>("People");
}
return this._People;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Person> _People;
/// <summary>
/// There are no comments for Trips in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Trips")]
public global::Microsoft.OData.Client.DataServiceQuery<Trip> Trips
{
get
{
if ((this._Trips == null))
{
this._Trips = base.CreateQuery<Trip>("Trips");
}
return this._Trips;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.OData.Client.DataServiceQuery<Trip> _Trips;
/// <summary>
/// There are no comments for Airlines in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToAirlines(Airline airline)
{
base.AddObject("Airlines", airline);
}
/// <summary>
/// There are no comments for Airports in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToAirports(Airport airport)
{
base.AddObject("Airports", airport);
}
/// <summary>
/// There are no comments for Events in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToEvents(Event @event)
{
base.AddObject("Events", @event);
}
/// <summary>
/// There are no comments for Flights in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToFlights(Flight flight)
{
base.AddObject("Flights", flight);
}
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToOrders(Order order)
{
base.AddObject("Orders", order);
}
/// <summary>
/// There are no comments for People in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToPeople(Person person)
{
base.AddObject("People", person);
}
/// <summary>
/// There are no comments for Trips in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public void AddToTrips(Trip trip)
{
base.AddObject("Trips", trip);
}
/// <summary>
/// There are no comments for Me in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Me")]
public PersonSingle Me
{
get
{
if ((this._Me == null))
{
this._Me = new PersonSingle(this, "Me");
}
return this._Me;
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private PersonSingle _Me;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private abstract class GeneratedEdmModel
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private static global::Microsoft.OData.Edm.IEdmModel ParsedModel = LoadModelFromString();
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private const string Edmx = @"<edmx:Edmx Version=""4.0"" xmlns:edmx=""http://docs.oasis-open.org/odata/ns/edmx"">
<edmx:DataServices>
<Schema Namespace=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models"" xmlns=""http://docs.oasis-open.org/odata/ns/edm"">
<EntityType Name=""Airline"">
<Key>
<PropertyRef Name=""AirlineCode"" />
</Key>
<Property Name=""AirlineCode"" Type=""Edm.String"" Nullable=""false"" MaxLength=""128"" />
<Property Name=""Name"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""TimeStampValue"" Type=""Edm.Binary"" Nullable=""false"" MaxLength=""8"">
<Annotation Term=""Org.OData.Core.V1.Computed"" Bool=""true"" />
</Property>
</EntityType>
<EntityType Name=""Airport"">
<Key>
<PropertyRef Name=""IcaoCode"" />
</Key>
<Property Name=""IcaoCode"" Type=""Edm.String"" Nullable=""false"" MaxLength=""128"" />
<Property Name=""Name"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""IataCode"" Type=""Edm.String"" MaxLength=""max"" />
</EntityType>
<ComplexType Name=""Location"">
<Property Name=""Address"" Type=""Edm.String"" MaxLength=""max"" />
</ComplexType>
<EntityType Name=""Event"">
<Key>
<PropertyRef Name=""Id"" />
</Key>
<Property Name=""Id"" Type=""Edm.Int32"" Nullable=""false"" />
<Property Name=""OccursAt"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Location"" Nullable=""false"" />
<Property Name=""Description"" Type=""Edm.String"" MaxLength=""max"" />
</EntityType>
<EntityType Name=""Flight"">
<Key>
<PropertyRef Name=""FlightId"" />
</Key>
<Property Name=""FlightId"" Type=""Edm.Int32"" Nullable=""false"" />
<Property Name=""ConfirmationCode"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""StartsAt"" Type=""Edm.DateTimeOffset"" Nullable=""false"" />
<Property Name=""EndsAt"" Type=""Edm.DateTimeOffset"" Nullable=""false"" />
<Property Name=""Duration"" Type=""Edm.Duration"" Nullable=""false"" />
<Property Name=""SeatNumber"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""FlightNumber"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""FromId"" Type=""Edm.String"" MaxLength=""128"" />
<Property Name=""ToId"" Type=""Edm.String"" MaxLength=""128"" />
<Property Name=""AirlineId"" Type=""Edm.String"" MaxLength=""128"" />
<NavigationProperty Name=""Airline"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Airline"">
<ReferentialConstraint Property=""AirlineId"" ReferencedProperty=""AirlineCode"" />
</NavigationProperty>
<NavigationProperty Name=""From"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Airport"">
<ReferentialConstraint Property=""FromId"" ReferencedProperty=""IcaoCode"" />
</NavigationProperty>
<NavigationProperty Name=""To"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Airport"">
<ReferentialConstraint Property=""ToId"" ReferencedProperty=""IcaoCode"" />
</NavigationProperty>
</EntityType>
<EntityType Name=""Order"">
<Key>
<PropertyRef Name=""PersonId"" />
<PropertyRef Name=""OrderId"" />
</Key>
<Property Name=""PersonId"" Type=""Edm.Int32"" Nullable=""false"" />
<Property Name=""OrderId"" Type=""Edm.Int32"" Nullable=""false"" />
<Property Name=""Price"" Type=""Edm.Double"" Nullable=""false"" />
<Property Name=""Description"" Type=""Edm.String"" MaxLength=""max"" />
</EntityType>
<EnumType Name=""Feature"">
<Member Name=""Feature1"" Value=""0"" />
<Member Name=""Feature2"" Value=""1"" />
<Member Name=""Feature3"" Value=""2"" />
<Member Name=""Feature4"" Value=""3"" />
</EnumType>
<EntityType Name=""Person"">
<Key>
<PropertyRef Name=""PersonId"" />
</Key>
<Property Name=""PersonId"" Type=""Edm.Int32"" Nullable=""false"" />
<Property Name=""UserName"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""FirstName"" Type=""Edm.String"" Nullable=""false"" MaxLength=""max"" />
<Property Name=""LastName"" Type=""Edm.String"" MaxLength=""26"" />
<Property Name=""Age"" Type=""Edm.Int32"" />
<Property Name=""Concurrency"" Type=""Edm.Int64"" Nullable=""false"" />
<Property Name=""BirthDate"" Type=""Edm.Date"" Nullable=""false"" />
<Property Name=""BirthDate2"" Type=""Edm.Date"" />
<Property Name=""BirthTime"" Type=""Edm.TimeOfDay"" Nullable=""false"" />
<Property Name=""BirthTime2"" Type=""Edm.TimeOfDay"" />
<Property Name=""BirthDateTime"" Type=""Edm.DateTimeOffset"" Nullable=""false"" />
<Property Name=""BirthDateTime2"" Type=""Edm.DateTimeOffset"" />
<Property Name=""FavoriteFeature"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Feature"" Nullable=""false"" />
<Property Name=""FavoriteFeature2"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Feature"" />
<NavigationProperty Name=""BestFriend"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person"" />
<NavigationProperty Name=""Friends"" Type=""Collection(Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person)"" />
<NavigationProperty Name=""Trips"" Type=""Collection(Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Trip)"" />
</EntityType>
<EntityType Name=""Trip"">
<Key>
<PropertyRef Name=""TripId"" />
</Key>
<Property Name=""TripId"" Type=""Edm.Int32"" Nullable=""false"" />
<Property Name=""TrackGuid"" Type=""Edm.Guid"">
<Annotation Term=""Org.OData.Core.V1.Computed"" Bool=""true"" />
</Property>
<Property Name=""PersonId"" Type=""Edm.Int32"" />
<Property Name=""ShareId"" Type=""Edm.Guid"" Nullable=""false"" />
<Property Name=""Name"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""Budget"" Type=""Edm.Single"" Nullable=""false"" />
<Property Name=""Description"" Type=""Edm.String"" MaxLength=""max"" />
<Property Name=""StartsAt"" Type=""Edm.DateTimeOffset"" Nullable=""false"" />
<Property Name=""EndsAt"" Type=""Edm.DateTimeOffset"" Nullable=""false"" />
<Property Name=""LastUpdated"" Type=""Edm.DateTimeOffset"" Nullable=""false"" />
<NavigationProperty Name=""Events"" Type=""Collection(Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Event)"" />
<NavigationProperty Name=""Flights"" Type=""Collection(Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Flight)"" />
</EntityType>
<Function Name=""GetNumberOfFriends"" IsBound=""true"">
<Parameter Name=""person"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person"" />
<ReturnType Type=""Edm.Int32"" Nullable=""false"" />
</Function>
<Function Name=""GetPersonWithMostFriends"">
<ReturnType Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person"" />
</Function>
<Function Name=""GetPeopleWithFriendsAtLeast"">
<Parameter Name=""n"" Type=""Edm.Int32"" Nullable=""false"" />
<ReturnType Type=""Collection(Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person)"" />
</Function>
<Action Name=""ResetDataSource"" />
<Action Name=""CleanUpExpiredTrips"" />
<Action Name=""EndTrip"" IsBound=""true"" EntitySetPath=""trip"">
<Parameter Name=""trip"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Trip"" />
<ReturnType Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Trip"" />
</Action>
<EntityContainer Name=""TrippinModel"">
<EntitySet Name=""Airlines"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Airline"">
<Annotation Term=""Org.OData.Core.V1.OptimisticConcurrency"">
<Collection>
<PropertyPath>TimeStampValue</PropertyPath>
</Collection>
</Annotation>
</EntitySet>
<EntitySet Name=""Airports"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Airport"" />
<EntitySet Name=""Events"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Event"" />
<EntitySet Name=""Flights"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Flight"">
<NavigationPropertyBinding Path=""Airline"" Target=""Airlines"" />
<NavigationPropertyBinding Path=""From"" Target=""Airports"" />
<NavigationPropertyBinding Path=""To"" Target=""Airports"" />
</EntitySet>
<EntitySet Name=""Orders"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Order"" />
<EntitySet Name=""People"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person"">
<NavigationPropertyBinding Path=""BestFriend"" Target=""People"" />
<NavigationPropertyBinding Path=""Friends"" Target=""People"" />
<NavigationPropertyBinding Path=""Trips"" Target=""Trips"" />
</EntitySet>
<EntitySet Name=""Trips"" EntityType=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Trip"">
<NavigationPropertyBinding Path=""Events"" Target=""Events"" />
<NavigationPropertyBinding Path=""Flights"" Target=""Flights"" />
<Annotation Term=""Org.OData.Core.V1.OptimisticConcurrency"">
<Collection>
<PropertyPath>LastUpdated</PropertyPath>
</Collection>
</Annotation>
</EntitySet>
<Singleton Name=""Me"" Type=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person"">
<NavigationPropertyBinding Path=""Friends"" Target=""People"" />
<NavigationPropertyBinding Path=""Trips"" Target=""Trips"" />
</Singleton>
<FunctionImport Name=""GetPersonWithMostFriends"" Function=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.GetPersonWithMostFriends"" EntitySet=""People"" />
<FunctionImport Name=""GetPeopleWithFriendsAtLeast"" Function=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.GetPeopleWithFriendsAtLeast"" EntitySet=""People"" />
<ActionImport Name=""ResetDataSource"" Action=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.ResetDataSource"" />
<ActionImport Name=""CleanUpExpiredTrips"" Action=""Microsoft.Restier.WebApi.Test.Services.Trippin.Models.CleanUpExpiredTrips"" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>";
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public static global::Microsoft.OData.Edm.IEdmModel GetInstance()
{
return ParsedModel;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private static global::Microsoft.OData.Edm.IEdmModel LoadModelFromString()
{
global::System.Xml.XmlReader reader = CreateXmlReader(Edmx);
try
{
return global::Microsoft.OData.Edm.Csdl.EdmxReader.Parse(reader);
}
finally
{
((global::System.IDisposable)(reader)).Dispose();
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private static global::System.Xml.XmlReader CreateXmlReader(string edmxToParse)
{
return global::System.Xml.XmlReader.Create(new global::System.IO.StringReader(edmxToParse));
}
}
/// <summary>
/// There are no comments for GetPersonWithMostFriends in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("GetPersonWithMostFriends")]
public global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.PersonSingle GetPersonWithMostFriends()
{
return new global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.PersonSingle(this.CreateFunctionQuerySingle<global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person>("", "GetPersonWithMostFriends", false));
}
/// <summary>
/// There are no comments for GetPeopleWithFriendsAtLeast in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("GetPeopleWithFriendsAtLeast")]
public global::Microsoft.OData.Client.DataServiceQuery<global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person> GetPeopleWithFriendsAtLeast(int n)
{
return this.CreateFunctionQuery<global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Person>("", "GetPeopleWithFriendsAtLeast", false, new global::Microsoft.OData.Client.UriOperationParameter("n", n));
}
/// <summary>
/// There are no comments for ResetDataSource in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("ResetDataSource")]
public global::Microsoft.OData.Client.DataServiceActionQuery ResetDataSource()
{
return new global::Microsoft.OData.Client.DataServiceActionQuery(this, this.BaseUri.OriginalString.Trim('/') + "/ResetDataSource");
}
/// <summary>
/// There are no comments for CleanUpExpiredTrips in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("CleanUpExpiredTrips")]
public global::Microsoft.OData.Client.DataServiceActionQuery CleanUpExpiredTrips()
{
return new global::Microsoft.OData.Client.DataServiceActionQuery(this, this.BaseUri.OriginalString.Trim('/') + "/CleanUpExpiredTrips");
}
}
/// <summary>
/// There are no comments for AirlineSingle in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("AirlineSingle")]
public partial class AirlineSingle : global::Microsoft.OData.Client.DataServiceQuerySingle<Airline>
{
/// <summary>
/// Initialize a new AirlineSingle object.
/// </summary>
public AirlineSingle(global::Microsoft.OData.Client.DataServiceContext context, string path)
: base(context, path) {}
/// <summary>
/// Initialize a new AirlineSingle object.
/// </summary>
public AirlineSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable)
: base(context, path, isComposable) {}
/// <summary>
/// Initialize a new AirlineSingle object.
/// </summary>
public AirlineSingle(global::Microsoft.OData.Client.DataServiceQuerySingle<Airline> query)
: base(query) {}
}
/// <summary>
/// There are no comments for Airline in the schema.
/// </summary>
/// <KeyProperties>
/// AirlineCode
/// </KeyProperties>
[global::Microsoft.OData.Client.Key("AirlineCode")]
[global::Microsoft.OData.Client.EntitySet("Airlines")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Airline")]
public partial class Airline : global::Microsoft.OData.Client.BaseEntityType, global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Airline object.
/// </summary>
/// <param name="airlineCode">Initial value of AirlineCode.</param>
/// <param name="timeStampValue">Initial value of TimeStampValue.</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public static Airline CreateAirline(string airlineCode, byte[] timeStampValue)
{
Airline airline = new Airline();
airline.AirlineCode = airlineCode;
airline.TimeStampValue = timeStampValue;
return airline;
}
/// <summary>
/// There are no comments for Property AirlineCode in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("AirlineCode")]
public string AirlineCode
{
get
{
return this._AirlineCode;
}
set
{
this.OnAirlineCodeChanging(value);
this._AirlineCode = value;
this.OnAirlineCodeChanged();
this.OnPropertyChanged("AirlineCode");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _AirlineCode;
partial void OnAirlineCodeChanging(string value);
partial void OnAirlineCodeChanged();
/// <summary>
/// There are no comments for Property Name in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Name")]
public string Name
{
get
{
return this._Name;
}
set
{
this.OnNameChanging(value);
this._Name = value;
this.OnNameChanged();
this.OnPropertyChanged("Name");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _Name;
partial void OnNameChanging(string value);
partial void OnNameChanged();
/// <summary>
/// There are no comments for Property TimeStampValue in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("TimeStampValue")]
public byte[] TimeStampValue
{
get
{
return this._TimeStampValue;
}
set
{
this.OnTimeStampValueChanging(value);
this._TimeStampValue = value;
this.OnTimeStampValueChanged();
this.OnPropertyChanged("TimeStampValue");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private byte[] _TimeStampValue;
partial void OnTimeStampValueChanging(byte[] value);
partial void OnTimeStampValueChanged();
/// <summary>
/// This event is raised when the value of the property is changed
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The value of the property is changed
/// </summary>
/// <param name="property">property name</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for AirportSingle in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("AirportSingle")]
public partial class AirportSingle : global::Microsoft.OData.Client.DataServiceQuerySingle<Airport>
{
/// <summary>
/// Initialize a new AirportSingle object.
/// </summary>
public AirportSingle(global::Microsoft.OData.Client.DataServiceContext context, string path)
: base(context, path) {}
/// <summary>
/// Initialize a new AirportSingle object.
/// </summary>
public AirportSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable)
: base(context, path, isComposable) {}
/// <summary>
/// Initialize a new AirportSingle object.
/// </summary>
public AirportSingle(global::Microsoft.OData.Client.DataServiceQuerySingle<Airport> query)
: base(query) {}
}
/// <summary>
/// There are no comments for Airport in the schema.
/// </summary>
/// <KeyProperties>
/// IcaoCode
/// </KeyProperties>
[global::Microsoft.OData.Client.Key("IcaoCode")]
[global::Microsoft.OData.Client.EntitySet("Airports")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Airport")]
public partial class Airport : global::Microsoft.OData.Client.BaseEntityType, global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Airport object.
/// </summary>
/// <param name="icaoCode">Initial value of IcaoCode.</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public static Airport CreateAirport(string icaoCode)
{
Airport airport = new Airport();
airport.IcaoCode = icaoCode;
return airport;
}
/// <summary>
/// There are no comments for Property IcaoCode in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("IcaoCode")]
public string IcaoCode
{
get
{
return this._IcaoCode;
}
set
{
this.OnIcaoCodeChanging(value);
this._IcaoCode = value;
this.OnIcaoCodeChanged();
this.OnPropertyChanged("IcaoCode");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _IcaoCode;
partial void OnIcaoCodeChanging(string value);
partial void OnIcaoCodeChanged();
/// <summary>
/// There are no comments for Property Name in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Name")]
public string Name
{
get
{
return this._Name;
}
set
{
this.OnNameChanging(value);
this._Name = value;
this.OnNameChanged();
this.OnPropertyChanged("Name");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _Name;
partial void OnNameChanging(string value);
partial void OnNameChanged();
/// <summary>
/// There are no comments for Property IataCode in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("IataCode")]
public string IataCode
{
get
{
return this._IataCode;
}
set
{
this.OnIataCodeChanging(value);
this._IataCode = value;
this.OnIataCodeChanged();
this.OnPropertyChanged("IataCode");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _IataCode;
partial void OnIataCodeChanging(string value);
partial void OnIataCodeChanged();
/// <summary>
/// This event is raised when the value of the property is changed
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The value of the property is changed
/// </summary>
/// <param name="property">property name</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for Location in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("Location")]
public partial class Location : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// There are no comments for Property Address in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Address")]
public string Address
{
get
{
return this._Address;
}
set
{
this.OnAddressChanging(value);
this._Address = value;
this.OnAddressChanged();
this.OnPropertyChanged("Address");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _Address;
partial void OnAddressChanging(string value);
partial void OnAddressChanged();
/// <summary>
/// This event is raised when the value of the property is changed
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The value of the property is changed
/// </summary>
/// <param name="property">property name</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for EventSingle in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("EventSingle")]
public partial class EventSingle : global::Microsoft.OData.Client.DataServiceQuerySingle<Event>
{
/// <summary>
/// Initialize a new EventSingle object.
/// </summary>
public EventSingle(global::Microsoft.OData.Client.DataServiceContext context, string path)
: base(context, path) {}
/// <summary>
/// Initialize a new EventSingle object.
/// </summary>
public EventSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable)
: base(context, path, isComposable) {}
/// <summary>
/// Initialize a new EventSingle object.
/// </summary>
public EventSingle(global::Microsoft.OData.Client.DataServiceQuerySingle<Event> query)
: base(query) {}
}
/// <summary>
/// There are no comments for Event in the schema.
/// </summary>
/// <KeyProperties>
/// Id
/// </KeyProperties>
[global::Microsoft.OData.Client.Key("Id")]
[global::Microsoft.OData.Client.EntitySet("Events")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Event")]
public partial class Event : global::Microsoft.OData.Client.BaseEntityType, global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Event object.
/// </summary>
/// <param name="ID">Initial value of Id.</param>
/// <param name="occursAt">Initial value of OccursAt.</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public static Event CreateEvent(int ID, global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Location occursAt)
{
Event @event = new Event();
@event.Id = ID;
if ((occursAt == null))
{
throw new global::System.ArgumentNullException("occursAt");
}
@event.OccursAt = occursAt;
return @event;
}
/// <summary>
/// There are no comments for Property Id in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Id")]
public int Id
{
get
{
return this._Id;
}
set
{
this.OnIdChanging(value);
this._Id = value;
this.OnIdChanged();
this.OnPropertyChanged("Id");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private int _Id;
partial void OnIdChanging(int value);
partial void OnIdChanged();
/// <summary>
/// There are no comments for Property OccursAt in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("OccursAt")]
public global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Location OccursAt
{
get
{
return this._OccursAt;
}
set
{
this.OnOccursAtChanging(value);
this._OccursAt = value;
this.OnOccursAtChanged();
this.OnPropertyChanged("OccursAt");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Location _OccursAt;
partial void OnOccursAtChanging(global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.Location value);
partial void OnOccursAtChanged();
/// <summary>
/// There are no comments for Property Description in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Description")]
public string Description
{
get
{
return this._Description;
}
set
{
this.OnDescriptionChanging(value);
this._Description = value;
this.OnDescriptionChanged();
this.OnPropertyChanged("Description");
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private string _Description;
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
/// <summary>
/// This event is raised when the value of the property is changed
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The value of the property is changed
/// </summary>
/// <param name="property">property name</param>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for FlightSingle in the schema.
/// </summary>
[global::Microsoft.OData.Client.OriginalNameAttribute("FlightSingle")]
public partial class FlightSingle : global::Microsoft.OData.Client.DataServiceQuerySingle<Flight>
{
/// <summary>
/// Initialize a new FlightSingle object.
/// </summary>
public FlightSingle(global::Microsoft.OData.Client.DataServiceContext context, string path)
: base(context, path) {}
/// <summary>
/// Initialize a new FlightSingle object.
/// </summary>
public FlightSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable)
: base(context, path, isComposable) {}
/// <summary>
/// Initialize a new FlightSingle object.
/// </summary>
public FlightSingle(global::Microsoft.OData.Client.DataServiceQuerySingle<Flight> query)
: base(query) {}
/// <summary>
/// There are no comments for Airline in the schema.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
[global::Microsoft.OData.Client.OriginalNameAttribute("Airline")]
public global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.AirlineSingle Airline
{
get
{
if (!this.IsComposable)
{
throw new global::System.NotSupportedException("The previous function is not composable.");
}
if ((this._Airline == null))
{
this._Airline = new global::Microsoft.Restier.WebApi.Test.Services.Trippin.Models.AirlineSingle(this.Context, GetPath("Airline"));
}