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

Edited Issue: Do not allow duplicate function names for the same entity type [525]

$
0
0
In the following scenario, i have duplicate function names for the entity type Product...the services opens successfully and shows both these functions and also the advertisement shows both these functions...we should throw error before opening the service...<br /><br />static IEdmModel GetImplicitEdmModel()<br /> {<br /> ODataConventionModelBuilder modelBuilder = new ODataConventionModelBuilder();<br /> var products = modelBuilder.EntitySet<Product>("Products");<br /> var productFamilies = modelBuilder.EntitySet<ProductFamily>("ProductFamilies");<br /> var suppliers = modelBuilder.EntitySet<Supplier>("Suppliers");<br /><br /> var config = products.EntityType.Action("ExtendSupportDate");<br /> config.Parameter<DateTime>("newDate");<br /> config.ReturnsFromEntitySet<Product>("Products");<br /><br /> var config2 = products.EntityType.Action("ExtendSupportDate");<br /> config2.Parameter<DateTime>("newDate");<br /> config2.ReturnsFromEntitySet<Product>("Products");

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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