Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: Make primitive parameters non-nullable by default when they are c# non-nullable. [486]

$
0
0
In the following action configuration, 'DateTime' parameter needs to be shown as Nullable="False" in the metadata document.

ActionConfiguration:
var product = products.EntityType;
var extendSupportAction = product.Action("ExtendSupport");
extendSupportAction.Parameter<DateTime>("newSupportedUntilDate");
extendSupportAction.ReturnsFromEntitySet<ProductFamily>("ProductFamilies");

Metadata:
<FunctionImport Name="ExtendSupport" ReturnType="ODataService.Models.ProductFamily" IsBindable="true" EntitySet="ProductFamilies">
<Parameter Name="bindingParameter" Type="ODataService.Models.Product"/>
<Parameter Name="newSupportedUntilDate" Type="Edm.DateTime"/>
</FunctionImport>

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>