I have a db first edmx model. The partial classes it generates have non-virtual simple properties. E.g.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class Entity
{
public int Id {get;set;} //not virtual
public string SomeOtherProperty {get;set;} //also not virtual
public virtual ICollection<RelatedEntity> RelatedCollection {get;set;} //but 'navigational' properties are virtual.
}
How to tell the designer to make all properties virtual?