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

Closed Issue: Do not allow duplicate parameter names for actions [492]

$
0
0
Negative case:
Currently we are allowing this. We could error out if we see duplicate names for parameters.

var extSupport = product.Action("ExtendSupport");
extSupport.Parameter<DateTime>("p1");
extSupport.Parameter<string>("p1");

<FunctionImport Name="ExtendSupport" IsBindable="true">
<Parameter Name="bindingParameter" Type="ODataService.Models.Product"/>
<Parameter Name="p1" Type="Edm.DateTime"/>
<Parameter Name="p1" Type="Edm.String" FixedLength="false" Unicode="false"/>
</FunctionImport>
Comments: I think this is a *really* rare user error. I think I am fine won't fix this for now.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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