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

Entity Framework 6 - Knowledge Base (KB)

English (en) Français (fr) Español (es) Italiano (it) Deutsch (de) русский (ru) 한국어 (ko) 日本語 (ja) 中文简体 (zh-CN) 中文繁體 (zh-TW)

3188 results for: in tag: entity-framework-6

How to ask the database server for current datetime using entity framework?

I have an entity with a ModifiedDateTime property which I want to be updated with the current datetime from the database instead of the "application" server executing the application....Every time I want to update or add a person to my datebase on SQL Ser...
entity-framework entity-framework-4 entity-framework-6
asked by Levelbit

Check if there are any pending changes to be saved

Is there a way to find out whether there are unsaved changes in my entity context, in the Entity Framework?
entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by Palantir

Table-per-type inheritance with EF 4.1 Fluent Code First

I have a pretty straight forward set of database tables, like:...Vehicle Id RegNo Car Id (FK of Vehicle.Id) OtherStuff Bike Id (FK of Vehicle.Id) MoreStuff ...My class model is as you'd expect: with Vehicle being an abstract class, and then Car an...
entity-framework entity-framework-4 entity-framework-4.1 entity-framework-6 table-per-type
asked by nbevans

EF code-first: How to load related data (parent-child-grandchild)?

I have this entity:...public class DynamicPage { public int PageId { get; set; } public int Order { get; set; } public string MenuText { get; set; } public string MenuHover { get; set; } public int? ParentId { get; set; } pub...
ef-code-first entity-framework entity-framework-4.1 entity-framework-5 entity-framework-6
asked by ravy amiry

async-await issue in EF 6

I'm trying async-await programming with entity-framework 6 (code first) + WPF and I can't see why the UI still freezes after I made the code asynchronous. Here is what I'm doing from the very first line:...first there is an event handler responding to a c...
async-await entity-framework entity-framework-6 wpf
asked by Vahid

Entity Framework 6 Code First Migration's ContextKey

Now i'm using EF6 Alpha, and when using migration, it will add a new migration log into the __MigrationHistory table....In EF6, The __MigrationHistory table has a new column called "ContextKey". After testing, I found there are two default "ContextKey" va...
entity-framework entity-framework-6
asked by RongieZeng

Can't update database using EF Migrations after updating to EF 6.0.0-alpha

After updating my Entity Framework to version 6.0.0-alpha1 I cant update database. This is the error I'm getting:...PM> update-database -verbose Using StartUp project 'DataCenter'. Using NuGet project 'DataCenter.Domain'. Specify the '-Verbose' flag to vi...
code-first ef-migrations entity-framework entity-framework-6
asked by Mahmoodvcs

Entity Framework 6: Right usage of "Custom Code First Conventions" Feature?

My requirement is configuing the string length mapping globally, but also can use MaxLengthAttribute to configue a property specially. Here's my code:...public class StringLengthConvention : IConfigurationConvention<PropertyInfo, StringPropertyConfigurati...
entity-framework entity-framework-6
asked by RongieZeng

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

Entities Framework 6 alpha 2 - Async Patterns

I recently have a project with MVC 4, .NET 4.5 and using EF 5.0 (Database First) using the EF 5.0 DbContext Generator. I then upgraded through Nuget Manager to EF 6.0 alpha 2. I wanted to use the new async patterns but for some reason I dont have .ToLis...
asp.net-mvc asp.net-mvc-4 azure-sql-database c# entity-framework-6
asked by Joe

EF 6 System.Data.Objects.ObjectContext Error

I recently upgraded from Entities Framework 5 to Entities Framework 6 Alpha 2 and I am getting the following error:...Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'....Th...
asp.net-mvc asp.net-mvc-4 azure-sql-database c# entity-framework-6
asked by Joe

Is calling AsQueryable<T> on a DbSet<T> "safe"?

Say I want to unit test Entity Framework's query logic, one way would be to convert the ...DbSet<T>... to ...IQueryable<T>... before building the expression trees for easy mocking. Is this "safe" and is there anything to be aware about?
.net c# entity-framework-6
asked by Dante

EntityFramework 6 Alpha 2 & MySQL Connector/NET 6.6.4

The 6.6.4 MySQL .NET connector apparently has support for EF6. I've upgraded from EF5 and .NET 4 to EF6 alpha2 and .NET 4.5. I've recreated the ADO.NET Entity Data Model since upgrading....Upon doing anything to the database it throws up an exception mess...
entity-framework entity-framework-6 mysql mysql-connector
asked by pierce

Entity Framework 6 + SQLite

I'm trying to use EF6 alpha and SQLite 1.0.66.0...My .config file:...<connectionStrings> <add connectionString="data source=:memory:;" name="TestDbContext" providerName="System.Data.SQLite" /> </connectionStrings> <entityFramework> <providers> ...
ado.net entity-framework entity-framework-6 sqlite
asked by nmulyukin

Can't find System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer

I'm constructing a DbContext from an SqlConnection. When I use it, I receive the following error:...The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicK...
c# entity-framework-6
asked by Vincent-Philippe Lauzon

ASP.NET MVC 4 + Entity Framework 6 + SQL Compact Edition 4.0 deployment no install

Im trying to deploy a basic MVC 4 app that uses Entity Framework 6 (Code First) and SQL Compact 4.0 on a clean install of windows 7 with iis installed (mvc 4 and sql compact 4.0 is not installed)....I got the following nuget packages installed on the db p...
asp.net-mvc-4 deployment entity-framework-6 sql-server-ce
asked by oskarkvamme

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

EF6 alpha Async Await on an Entity Stored Procedure / Function Import?

I'd like to apply the new async await functionality to Stored Procedures / Function Imports imported in my Entity model, but have as yet been unable to with the EF6 alpha....Is it yet possible in EF6 alpha2 (or the nightly build as of 20211) to call any o...
async-await c#-5.0 entity-framework entity-framework-6
asked by blueFish

Error deploying to SQL Azure using EF 6 alpha3 Code First and Migrations creating __MigrationHistory table

I'm using EF 6 alpha 3 code first. When I try to create the database on SQL Azure running the Update-Database command I get the following error:...Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered ...
azure-sql-database entity-framework entity-framework-6
asked by Bruno Moscão

EntityFramework, version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is incompatible with .net framework 4

I have recently upgraded all solutions in my project to EF6 alpha3 but one of my projects is missing the EntityFramework.dll and EntityFramework.SQLServer.dll references. Naturally this is causing an error when I run the application, but when I try to man...
entity-framework-6
asked by Terra

Page 1 of 160
  • 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
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

Try for free now