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)

4283 results in tag: c#

Entity Framework Provider type could not be loaded?

I am trying to run my tests on TeamCity which is currently installed on my machine....System.InvalidOperationException...: ...The Entity Framework provider type '...System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer..., ...Ver...
c# entity-framework entity-framework-6 mstest teamcity-7.1
asked by ashutosh raina

How to get original Entity from ChangeTracker

Is there a way to get the original Entity itself from the ...ChangeTracker... (rather than just the original values)?...If the ...State... is ...Modified..., then I suppose I could do this:...// Get the DbEntityEntry from the DbContext.ChangeTracker... /...
.net c# entity-framework entity-framework-6
asked by Eric

Entity Framework and Migration with multiple schemas in a single Context

I am developing a multi-tenant application with Entity Framework Code First. Each tenant will have a different schema in the database, but the application will have a single Context and model for all tenants. ...The Entity Framwork 6 is able to use multi...
c# ef-code-first entity-framework entity-framework-6
asked by Bruno Albano de Souza

Entity Framework 6 Custom Relationship Convention

I have read ...this... documentation about convention in Entity Framework 6. But it does not contain convention for Relationship. ...Suppose I have following model:...[TablePrefix("mst")] public class Guru { public int Id { get; set; } public int...
c# entity-framework entity-framework-6
asked by Niyoko Yuliawan

What is the correct use of IDatabaseInitializer in EF?

I have a custom DatabaseInitialiser which is below.../// <summary> /// Implements the IDatabaseInitializer to provide a custom database initialisation for the context. /// </summary> /// <typeparam name="TContext">TContext is the DbContext</typeparam> pub...
c# ef-code-first ef-migrations entity-framework entity-framework-6
asked by ashutosh raina

Entity Framework 6 Unable to retrive metadata

I am using EF 6 pre-3....Product model:...namespace ProductStore.Models { public class Product { [ScaffoldColumn(false)] public int Id { get; set; } [Required] public string Name { get; set; } public decimal...
c# entity-framework entity-framework-6
asked by Alvin

EntityFramework.Extended Update not working - can't convert DynamicProxy

I am using Entity Framework 6 and tried to use EntityFramework.Extended to do some batch updates:...db.TicketOrderItems .Where(i => !i.IsDeleted && !i.Order.IsCompleted && i.Order.OrderDate < margin) .Update(i => new TicketOrderItem { IsDeleted = true...
c# entity-framework entity-framework-6 entity-framework-extended sql
asked by Christoph Fink

Entity Framework 6 Code First function mapping

I want integrate Entity Framework 6 to our system, but have problem....I want to use Code First. I don’t want to use Database First *.edmx file for other reasons....I use attribute mapping [Table], [Column] and this works fine...Database has many User-D...
c# ef-code-first entity-framework entity-framework-6 sql-function
asked by Alexey

Entity Framework (6) Performance Optimisation advice

I have an ADO.Net Data Access layer in my application that uses basic ADO.Net coupled with CRUD stored procedures (one per operation e.g. Select_myTable, Insert_myTable). As you can imagine, in a large system (like ours), the number of DB objects required...
.net c# entity-framework entity-framework-6 performance
asked by Obsidian Phoenix

EntityFramework (6) and async ( waitingForActivation)?

I've downloaded ...EF6... ( in order to use ...async...)...So I wrote this simple method : ... public async Task<List<int>> MyasyncMethod() { var locations = await MyDumpEntities.AgeGroups.Select(f=>f.endYear).ToListAsync(); ret...
.net-4.5 async-await c# entity-framework entity-framework-6
asked by Royi Namir

How to cancel an async query the right way

This is a follow up question to ...this question.......I'm trying to load data from my database which will take 5-10 seconds, but I want the GUI to stay responsive and also it should be cancellable....private CancellationTokenSource _source; public IEnum...
.net c# entity-framework entity-framework-6 wpf
asked by Staeff

ObjectContext.GetObjectType(e.GetType()) not returning the entity type of the POCO entity

The ...ObjectContext.GetObjectType Method... should return "the entity type of the POCO entity associated with a proxy object of a specified type"...So how come in my code it just returns the proxy?...I am using entity framework 6 release candidate... ...
c# entity-framework entity-framework-6
asked by Colin

Entering keys manually with Entity Framework

I'm trying to use Entity Framework code first for a simple database project and I run into a problem I simply cannot figure out. ...I noticed EF was setting the ID for my tables automatically increasing by 1 each time, completely ignoring the value I ente...
asp.net c# entity-framework entity-framework-core sql
asked by JCafe

EntityFramework 6 RC1 Include on Many-to-Many property fails

I have a many-to-many relationship between Agents and AgentGroups (psuedocode, abbreviated)....public class Agent { public virtual List<AgentGroup> AgentGroups { get; set; } } public class AgentGroup { public virtual List<Agent> Agents { get; ...
c# entity-framework entity-framework-6
asked by Celeste

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

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

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

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

Page 1 of 215
  • 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!