Top "Ef-database-first" questions

The Database First Approach of Entity Framework provides an alternative to the Code First and Model First approaches to the Entity Data Model and it creates model codes (classes, properties, DbContext etc.

Using MVC 4 SimpleMembership with an existing database-first EF model

I am trying to use SimpleMembership in my MVC 4 for the first time and I already have an existing database …

asp.net-mvc-4 entity-framework-5 sql-server-2012 simplemembership ef-database-first
Binding ListBox with a model in MVC3

My model is public class SiteConfig { public SiteConfig() { } public int IdSiteConfig { get; set; } public string Name { get; set; } public byte[] …

asp.net-mvc-3 c#-4.0 asp.net-mvc-4 asp.net-mvc-areas ef-database-first
Entity Framework - Entity read-only property mapped to a column of related table

I have interesting problem to solve but, although common, it looks like it's not easily achievable with Entity Framework. There …

entity-framework entity-framework-4 ef-database-first
How to change [DisplayName] of EF generated class properties?

We know EF generates classes based on Tables we added to .edmx file. Which will not any [DisplayName] DataAnnotations for …

asp.net-mvc entity-framework asp.net-mvc-4 ef-database-first
Create one to one relationship by using entity framework database first

In EF Code First, we can create one-to-one relationship by coding like this: public class User { public int UserID {get;…

entity-framework ef-code-first one-to-one ef-database-first
Scaffold-DbContext (EF Core Tools) throws 'Instance failure' exception

Context Currently I am creating an Extract, Transform and Load (ETL) application written in C# with .NET Core. The target …

.net-core ef-database-first ef-core-2.1 entity-framework-core-2.1 entity-framework-core-migrations
what is advantage of CodeFirst over Database First?

I was watching some videos and tutorials for EF 4.1, and I do not understand any benefit of CodeFirst (except some …

entity-framework-4.1 ef-code-first ef-database-first
Entity Framework DB-First, implement inheritance

I'm trying to implement inheritance using entity framework 6.0 and database first approach. OK, let's say I have a Person and …

c# entity-framework inheritance ef-database-first
How to use Repository pattern using Database first approach in entity framework

How to use Repository pattern using Database first approach in entity framework.I got some idea while going through resources …

.net asp.net-mvc entity-framework ef-database-first