zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

6642 results

How to change the naming convention of Many-to-Many table relationships?

How can I go about changing the naming convention of the auto-generated many-to-many table?...Assume I have two classes:...public class User { public int UserId { get; set; } public virtual List<Role> Roles { get; set; } } public class Role { ...
ef-code-first entity-framework entity-framework-6
asked by Nathan A

How entity framework works for large number of records?

I see already a un-answered question ...here on.......My question is -...Is EF really production ready for large application?...The question originated from these underlying questions -...EF pulls all the records into memory then performs the query operat...
c# database-design entity-framework entity-framework-6
asked by Abhijeet

DropCreateDatabaseIfModelChanges EF6 results in System.InvalidOperationException: The model backing the context has changed

After migrating to Entity Framework 6 I get an error when executing unit tests on the build server....I'm using the ...DropCreateDatabaseIfModelChanges... initializer. When I change it to ...MigrateDatabaseToLatestVersion... everything works, but I want t...
.net c# entity-framework entity-framework-6
asked by Chris

BreezeJS and Entity Framework 6.0.1

I'm trying to create a Breeze Web API controller and I'm wondering if it is possible with the default MVC/Web API project template that comes with Visual Studio 2013. Updating everything through the Nuget packet manager installs Entity Framework 6.0.1. ...
breeze entity-framework entity-framework-6
asked by mdega

Unable to cast Anonymous Type from 'System.Linq.IQueryable' to 'System.Data.Entity.Core.Objects.ObjectQuery'

The following query was working well with EF5 but gives me error with EF6. I use DbContext and CodeFirst....Error raised with EF6:...Unable to cast the type 'System.Linq.IQueryable...1[[<>f__AnonymousType5...4[[System.Int32, mscorlib, Version=4.0.0.0, Cul...
c# entity-framework entity-framework-6 linq linq-to-entities
asked by Dan

How can I map tables using fluent API in ASP.NET MVC 5, Entity Framework 6?

I am trying to create a one to one relationship using C# in Entity Framework 6 using ASP.NET MVC 5 with built-in user authentication....I am able to make tables and connections with the defaults that Entity Framework creates. But when I try to use fluent ...
asp.net-identity asp.net-mvc-5 c# entity-framework entity-framework-6
asked by Bob

Upgrade EF 4 EDMX to EF 6

My application is using a database first EDMX in EF 4. I would like to upgrade everything to EF 6. After getting EF 6 with NuGet I had to make a lot of changes to my classes that are using my EF model, because namespaces have been changed in EF 6. Then I ...
entity-framework entity-framework-4 entity-framework-6
asked by SolarX

ODAC 12c and Entity Framework 6

Can anyone tell me if the ...Oracle Data Access Components 12c... is compatible with Entity Framework 6? The Oracle website is a nightmare for documentation and cannot find any references on how to resolve this....I have an existing project which I am tr...
c# entity-framework entity-framework-6 odac oracle
asked by philreed

How to resolve Warning : The element 'entityFramework' has invalid child element 'providers'. List of possible elements expected: 'contexts'

I'm playing around with EF different workflows. Yesterday I made a new project and ...Entity Framework 6... was the first suggestion from ...Nuget... so I decided to give it a try, also it is a very small project entirely for learning purposes so I guess ...
ef-code-first entity-framework entity-framework-6 visual-studio-2012
asked by Leron_says_get_back_Monica

Nullable fields are created when customizing IdentityUser class in asp.net Identity

I am trying to customize IdentityUser class in asp.net identity....public class ApplicationUser : IdentityUser { public ApplicationUser() { IsBlocked = false; } public bool IsBlocked { get; set; } } ...The problem is: when using c...
asp.net-identity ef-code-first entity-framework entity-framework-6
asked by aleyush

Entity Framework: The provider did not return a providermanifest instance

Entity Framework 6.0.1 my App.config:...<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section name="e...
c# ef-code-first entity-framework entity-framework-6 sql-server
asked by Temaska

Azure + EF 6 - Making code first migrations work

I am using EF 6 (code first with migrations) for MVC 5 project. On my local DEV machine everything works fine....But when I deploy my project to Azure, I get the following error when my app first tries to interact with the database:...Migrations is enable...
asp.net-mvc asp.net-mvc-5 azure entity-framework entity-framework-6
asked by Moon

Entity framework nesting complex types

I have a stored procedure that returns multiple result sets. Each one is a complex type. The first result set would contain a list of items of the same complex type as the second result set, etc. These do not cleanly correlate to specific entities. Fo...
ef-database-first entity-framework entity-framework-6
asked by ChristyPiffat

Test Entity Framework Find Method

I'm trying to test the that the ...GetSystem(int id)... method in ...SystemService.cs... returns the correct value, but can't seem to figure out how to get everything to play well together. It seems that no matter what I do, ...GetSystem()... always retur...
asp.net-web-api c# entity-framework entity-framework-6 unit-testing
asked by Steve Platz

EntityException thrown executing EF6 query with .Includes()

I am having trouble migrating an EF4 solution to EF6. ...We use T4 templates to generate persistent ignorant POCOs that have navigation properties based on ObservableCollection< T>....Because our ObjectContext implementation exposes entity sets as IObject...
c# entity-framework entity-framework-6
asked by user2932125

Entity Framework 6 Cannot build after adding stored procedures to data model

I just downloaded entity framework 6 and created a brand new project to test it. We currently use EF 5....After adding all my tables and stored procedures, I tried to build the project but I get errors:...Value of type 'System.Data.Objects.ObjectParameter...
entity-framework entity-framework-6
asked by Eric

How can I get my MultiSelectList to bind to my data model?

I have a many to many relationship between cars and many other tables. In my view I want to be able to have a multiselect list for items such as lights. I've tried many different formats I can't seem to get the list to set selected items.My preferred way ...
asp.net-mvc asp.net-mvc-5 c# entity-framework entity-framework-6
asked by Bob

EF6 SQL generation for <where nullable columns equals>

Trying to upgrade from EF5 to EF6, I encounter significant performance gap searching table by nullable column. Here is a sample:...public class Customer { public int Id { get; set; } public int? ManagerId { get; set; } //public virtual Manager...
entity-framework entity-framework-6
asked by Ben

EntityFramework when columnname changed error is Invalid column name

I am building an MVC4 application and using Entityframework. I am using code first model....My Project class is as follows:...public class Project { [Key] public int ProjectId { get; set; } public ProjectContact ApprovalContact { ge...
asp.net-mvc-4 entity-framework entity-framework-6
asked by user2739679

Different results from [ForeignKey] attribute vs. OnModelCreating or EntityTypeConfiguration

For background: I'm trying to keep my EF POCOs free from references to EF, so all model configuration code is going into either OnModelCreating or EntityTypeConfiguration classes instead of using attributes (thus avoiding the reference to System.Component...
entity-framework entity-framework-5 entity-framework-6
asked by derGral

Page 3 of 333
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • »
  • »»

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!