Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Closed Issue: UpForGrabs: Code First: Class with two indexers throws Sequence contains more than one matching element [612]

$
0
0
Repro Steps: <br />put inside a mapped class a custom indexer with two overloads like so: <br />public decimal this[int month] { <br />get { <br />return _someArray[month]; <br />} <br />set { <br />_someArray[month] = value; <br />} <br />} <br /><br />public decimal this[int front, int month] { <br />get { <br />return _someArray2D[front - 1, month - 1]; <br />} <br />set { <br />_someArray2D[front - 1, month - 1] = value; <br />} <br />} <br /><br /><br />I get 'Sequence contains more than one matching element' <br /><br /><br />This item was migrated from the DevDiv work item tracking system [ID=458598].<br /><br />This work item originated from connect.microsoft.com. A member of the EF team at Microsoft should close the related Connect issue when closing this work item.
Comments: Emil checked in a fix which has been verified

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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