Top "Entity-framework-6" questions

For questions about the The ADO.

How to sync model after using Code First from Database using Entity Framework 6.1 and MVC 5?

Assumptions Using EF 6.1, MVC 5, VS 2013, C# I have an existing database model designed in Toad DM for SQL Server and …

c# asp.net-mvc-5 ef-code-first entity-framework-6 ef-database-first
FindAsync and Include LINQ statements

The code I have got so far works fine public async Task<ActionResult> Details(Guid? id) { if (id == …

c# linq entity-framework-6
Application can't scaffold items

I created an MVC 5 application in VS 2013 Professional and then used EF 6.1 code first with an existing DB on SQL …

c# sql asp.net-mvc entity-framework-6 asp.net-mvc-scaffolding
Multi-async in Entity Framework 6?

This is my code: var banner = context.Banners.ToListAsync() var newsGroup = context.NewsGroups.ToListAsync() await Task.WhenAll(banner, newsGroup); But …

entity-framework asynchronous entity-framework-6
Column names in each table must be unique. Column name 'StripeRecipientId' in table 'dbo.Foos' is specified more than once

I have a model class named Foo that has, among others, these properties. public string StripeRecipientId { get; set; } public override …

entity-framework entity-framework-6 code-first
How to list users with role names in ASP.NET MVC 5

I have default project template of ASP.NET MVC 5 web site and I am trying to list all users with …

c# asp.net-mvc-5 entity-framework-6 asp.net-identity-2
Entity Framework 6 Code First Trigger

I'm using Entity Framework 6 Code First, and would like to create a Trigger. How do I do this? The reason …

c# sql entity-framework entity-framework-6
Entity Framework 6 set connection string runtime

We are in a mixed environment where our application is using both ADO.NET and Entity Framework. Since both are …

.net entity-framework entity-framework-6
Code-first migration: How to set default value for new property?

I am using EF6 for storing instances of the report class in my database. The database already contains data. Say …

c# .net entity-framework entity-framework-6 entity-framework-migrations
EF 6 database first: How to update stored procedures?

We are using Entity Framework 6.0.0 and use database first (like this) to generate code from tables and stored procedures. This …

entity-framework stored-procedures visual-studio-2013 entity-framework-6 ef-database-first