c# - Whenever I update edmx file it changes model1.context.cs's class name -
whenever update edmx file, automatically changes class name , constructor name. how can prevent it?
model1.context.cs
my code before update of edmx
public partial class rkdymentities : dbcontext { public rkdymentities() : base("name=rkdymentities") { }
code after updates
public partial class entities : dbcontext { public entities() : base("name=entities") { }
if want rename container class name follow below steps:
- open edmx file , click on design surface
- press f4 or right click , select properties.
- change property
entity container name
rkdymentities
Comments
Post a Comment