Seems an easy thing to do, but I cannot find how.. We have an EF EDMX model, DB first. Our DbContext's name is let's say MyEntities. This generates a context file
// <auto-generated>
public partial class MyEntities: DbContext
{
public MyEntities()
: base("name=MyEntities")
{
}
}
This means that connection string in config is also "MyEntities". Now we want to change the name to sth more suitable.
When I say 'Update from Db' in update dialog there is an option "Save entity connection settings in App.config as", but the name I see there is "MyEntities" and I cannot edit it. I checked Properties for EDMX, .tt and whatever files, this is nowhere to find.
Editing it directly in MyEntities.Context.cs will not do, as the file is autogenerated.
So where can I change this name?