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

Does Entity Framework 6 precompile queries with .Net Framework 4.0

Question title really says it all, but I can't seem to find this tidbit of information anywhere. A comment here ( ...https://stackoverflow.com/a/13224381/215068...) is the best I've found....Will EF 6 (6.0.1) precompile views when using the .NET Framewor...
.net-4.0 entity-framework entity-framework-6 precompiled
asked by EBarr

Thread safe Entity Framework 6

Just starting testing EF6 and its Async functions. Boy was I surprised when I realized that they are not thread safe. I kinda assumed that that was the point....I had my own ...Task... based extension methods for years already, but what I was waiting for ...
entity-framework entity-framework-6 multithreading task-parallel-library
asked by Rabbi

Use method in entity framework query

Is there anyway around this error? I'd like to reuse the same lamba expression in other queries instead of having duplication. Can LinqKit or other linq expression do this?...Error...LINQ to Entities does not recognize the method 'Boolean GetEvent(Tournam...
entity-framework entity-framework-6 lambda linq
asked by Mike Flynn

EF 6 Multiple Contexts in Same Assembly

I'm using EF6. I've created two namespaces for two different databases each with its own Entity Data model. In EF 3.5 when I created a model from a database the generated classes were all kept in a single file built from the context. I see in EF 6 templat...
.net c# entity-framework entity-framework-6
asked by Mike G

Entity DataSource not working with Entity Framework 6 Upgrade

I recently upgraded our Webforms application from EF 4.4 to EF6 and I got so many compile time build errors with the Entity Datasource controls. Generally I am getting these error in all occurrences when trying to access the context object :...e.Context ....
entitydatasource entity-framework entity-framework-6
asked by Maninder

Mapping composite keys using EF code first

Sql server table:...SomeId PK varchar(50) not null OtherId PK int not null ...How should I map this in EF 6 code first?...public class MyTable { [Key] public string SomeId { get; set; } [Key] public int OtherId { get; set; } } ...I've se...
c# entity-framework entity-framework-6 sql-server
asked by loyalflow

How to get id from entity for Auditlog in Entity Framework 6

I know it's several similar posts out there, but I cannot find any with a solution to this issue....I want to add a (sort of) AudioLog when adding, changing or deleting entities (soft-delete) in Entity Framework 6. I've overridden the SaveChanges and beca...
audit-logging c# entity-framework entity-framework-6 savechanges
asked by baddaydaddy

The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception on a Sub Website

I have 2 websites, one is a sub directory of another but is an Application ex: /root & /root/Services...They both use Entity Framework 6.x but the child website is throwing ...The type initializer for System.Data.Entity.Internal.AppConfig' threw an except...
c# entity-framework entity-framework-6 nuget
asked by Brian

HotTowel EF6 MVC5 Angular Breeze version challenge

Is it Possible to Get HotTowel and EntityFramework 6 working together?...Our DataAccess Layer was upgraded to EF6. The only reference we have to EntityFramework in the Web layer is the Web.Config... <section name="entityFramework" type="System.Data.Entit...
asp.net-mvc-5 breeze entity-framework entity-framework-6 hottowel
asked by phil soady

EF6, Code-First, enable-migrations, "Unable to load the specified metadata resource"

I have created a C# class library with 3 entity classes and a DbContext for code-first generation of database. All has gone well with version 1. I have created a separate test library and the class library with the DbContext class has been behaving as e...
code-first ef-migrations entity-framework entity-framework-6
asked by Neil W

EntityFramework 6 Migrations for both existing and new databases?

In our software, we have a customer base with existing databases. The databases are currently accessed via EntitySpaces, but we'd like to switch to EntityFramework (v6), as EntitySpaces is no longer supported. We'd also like to make use of the migrations ...
c# entity-framework entity-framework-6 entityspaces migration
asked by hoekki

EF6 - UTC DateTime

Is there any way to specify Entity Framework to convert all DateTime in UTC (for azure database storage) ? ...I would like that my model stay in local date time. I don't want to duplicate model datetime properties to have one in UTC (for EF) and another o...
entity-framework entity-framework-6
asked by ZeBobo5

Duplicate navigation properties when using Entity Framework 6 and fluent api

I got two models with a relations....public class Customer { public Customer() { CustomerSites = new List<CustomerSite>(); } public IList<CustomerSite> CustomerSites { get; set; } } public class CustomerSite { public Gui...
c# entity-framework entity-framework-6 fluent foreign-keys
asked by ainteger

Is transaction scope available in Entity framework 6.0

Entity framework 6.0 articles shows only "UseTransaction" and "BeginTransaction". Is transaction scope still available in Entity framework 6.0. If yes, how to use it and which dll to include?
entity-framework entity-framework-6 transactions
asked by Sumesh Kuttan

Spatial DataReader and Wrapping Providers in EF6

To get my head around the new style of wrapping providers in EF6 I have put a quick sample together but I am struggling when it comes to the spatial data reader....The exception I get is...Specified type is not registered on the target server.System.Data....
entity-framework entity-framework-6
asked by Matt Demler

EF code first Invalid column name

I'm currently working on my own simple CMS using MVC to familiarize myself with MVC and EF. ...At this time I've only got pages which can contain multiple paragraphs. In the database I've got 1 page (Home) and 1 paragraph. ...On the index view of home I'm...
asp.net-mvc asp.net-mvc-3 entity-framework entity-framework-6
asked by Jop

Best practices for integrating ASP.NET Identity - do they exist?

I'm using ASP.NET Identity with a new website and there don't seem to be many (any?) examples of how to do this in a decoupled manner. I do not want my domain model's ...DomainUser... class to have to inherit from ...Microsoft.AspNet.Identity.EntityFramew...
.net asp.net asp.net-identity entity-framework entity-framework-6
asked by joelmdev

Entity Framework 6 with Sql Server Compact 3.5 SP2?

I have found lots of information about using Entity Framework 6 with Sql CE 4 and on using Entity Framework 4 with both Sql CE 4 and 3.5, but using Entity Framework 6 with Sql CE 3.5 is a different matter. As far as I can tell, CE 3.5 ships with a provid...
entity-framework entity-framework-6 sql-server-ce sql-server-ce-3.5
asked by Dave Rael

How can I parse a string into a UNIQUEIDENTIFIER?

I'm writing an Entity Framework LINQ query in which I want to parse a string into a UNIQUEIDENTIFIER (aka GUID) as part of the ...WHERE... clause:...public IEnumerable<User> Find(Guid guid) { return dbContext .Users .Where(user => Guid...
.net entity-framework entity-framework-6 guid sql-server
asked by Sam

Save detached object graph using Entity Framework code first causes Primary Key violation

I'm trying to save an object graph of POCOs I have mapped to EF6 using Code First fluent notations....Upon saving the object graph however, I stumble upon primary key violation exceptions....The object graph is quite simple:...One ...Issue... can contain ...
c# ef-code-first entity-framework entity-framework-6 primary-key
asked by Robert Sirre

Page 4 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!