File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
OData/src/Asp.Versioning.WebApi.OData.ApiExplorer/Routing
WebApi/src/Asp.Versioning.WebApi
Common.OData.ApiExplorer/OData Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ private static IList<HttpParameterDescriptor> FilterParameters( HttpActionDescri
140140
141141 internal IList < ApiParameterDescription > ParameterDescriptions { get ; }
142142
143- internal ODataRouteTemplateGenerationKind RouteTemplateGeneration { get ; } = Client ;
143+ internal ODataRouteTemplateGenerationKind RouteTemplateGeneration => Client ;
144144
145145 internal IEdmModel EdmModel { get ; }
146146
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ private DoNotReportApiVersions() { }
1212
1313 internal static IReportApiVersions Instance => instance ??= new ( ) ;
1414
15- public ApiVersionMapping Mapping { get ; } = Explicit | Implicit ;
15+ public ApiVersionMapping Mapping => Explicit | Implicit ;
1616
1717 public void Report ( HttpResponseMessage response , ApiVersionModel apiVersionModel ) { }
1818}
Original file line number Diff line number Diff line change @@ -20,5 +20,9 @@ public class ODataValue<T>
2020 /// </summary>
2121 /// <value>The response content within "value".</value>
2222 [ JsonProperty ( "value" ) ]
23+ #if NETFRAMEWORK
2324 public T Value { get ; set ; } = default ! ;
25+ #else
26+ required public T Value { get ; set ; }
27+ #endif
2428}
Original file line number Diff line number Diff line change @@ -18,5 +18,9 @@ public class ODataId
1818 /// </summary>
1919 /// <value>The <see cref="Uri">URL</see> representing the related entity identifier.</value>
2020 [ JsonProperty ( "@odata.id" ) ]
21+ #if NETFRAMEWORK
2122 public Uri Value { get ; set ; } = default ! ;
23+ #else
24+ required public Uri Value { get ; set ; }
25+ #endif
2226}
You can’t perform that action at this time.
0 commit comments