How can I make my custom properties appear in the edmx design view of the latest version of Entity framework?
I added a custom property to a partial class like so:
public partial class Survey
{
public IEnumerable<Data.Users> answers
{
get;
set;
}
}
You can’t do this. Entities are generated from
edmxfile by EntityModelCodeGenerator (T4 generation), not vice versa. Any changes in entities either original generated classes, or partial created by you, will not affectedmxfile.So, if you want to see property in
edmxdesign view, then modifyedmxfile instead. Select yourSurveyentity atedmxdiagram, and from context menu pickAdd New.... You can add Scalar, Navigation, or Complex property here. Property will appear on you generated entity.