Top "Database-first" questions

Adding a New Column to an Existing Table in Entity Framework

I have added a new column to a table in my database. The table is already defined in the existing …

entity-framework ef-database-first database-first
Is there a way to change connection string in database first?

I have several databases, the schema of them are same. When I use database-first, the connection string is specified when …

entity-framework database-first
Code First vs. Database First

I created an Entity Framework model based on an existing database, then generated the POCO entities from the model. The …

c# entity-framework entity-framework-4.1 code-first database-first
The entity type [Name] is not part of the model for the current context

I create a model using EF and generated its context using DbContext 5.X generator. Now I renamed class name of …

c# entity-framework-5 poco database-first
Entity Framework cant use the DbContext, model being created

I am using EF 4.1, and I create a normal EF edmx file. I generate it from a DB. When it's …

entity-framework entity-framework-4.1 connection-string database-first
Is it possible to prevent EntityFramework 4 from overwriting customized properties?

I am using EF 4 Database first + POCOs. Because EF has no easy way to state that incoming DateTimes are of …

c# entity-framework entity-framework-4 poco database-first
Entity Framework DbContext Connection string in app.config/web.config not being seen

So, I have followed this instruction from ADO.NET team blog to try to make a small test project. I …

entity-framework ef-code-first dbcontext database-first
How to pass Session data from controller to View (MVC)

I'm new into MVC and I'm having a hard time solving this following issue. I got a userID via Session["…

c# asp.net-mvc razor database-first
"No executable found matching command dotnet-ef" error with EF Core database-first

As you know, the newest version of Visual Studio 2017 abandons the 'project.json' and uses .csproj instead. I'm using the …

visual-studio entity-framework dbcontext database-first
How to prevent from DataAnnotations Attributes being deleted in DataBase First Model

I have my asp.net mvc 3 application with entity framework and i used the Database First model to set it …

asp.net-mvc entity-framework data-annotations edmx database-first