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
"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