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:

  1. open edmx file , click on design surface
  2. press f4 or right click , select properties.
  3. change property entity container name rkdymentities

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -