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

Commented Issue: EntitySet.Table should be settable from Model based conventions [1040]

$
0
0
When a model based convention attempts to change EntitySet.Table a compile time error is thrown. Visual studio throws the following error:
"Property or indexer 'System.Data.Entity.Core.Metadata.Edm.EntitySetBase.Table' cannot be assigned to -- it is read only"

this is the convention that throws that exception:
class ModelBasedConvention : IDbConvention<EntitySet>
{
public void Apply(EntitySet entity, EdmModel model)
{
entity.Table = "_" + entity.Table;
}
}
Comments: Fixed in changeset 778b8dc6ada96ef94018f580f47933aa5addf25d

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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