Reputation: 135
Whenever I update edmx file, it automatically changes the class name and constructor name. How can I 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")
{
}
Upvotes: 4
Views: 2066
Reputation: 6766
If you want to rename your Container class name then do follow below steps:
Entity Container Name
to RKDYMEntities
Upvotes: 3