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

Entity Framework 6 - Knowledge Base (KB)

31 results in tag: entity-framework-5

Check for any modifications that need 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

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

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

In Entity Framework, why isn't lazy loading working for a one-to-zero-or-one navigation property?

Consider ...Person... and ...Address... classes defined as...class Person { public int PersonId { get; set; } public virtual Address Address { get; set; } } class Address { public int PersonId { get; set; } public virtual Person Person { get; set...
ef-code-first entity-framework entity-framework-5 entity-framework-6 lazy-loading
asked by Mike

Updatable Views in Entity Framework 5/6

I have several Views that are updatable according to ...http://technet.microsoft.com/en-us/library/ms187956.aspx.... ...All of my views follow the specifications in the afformentioned article. I have verified in SQL Management Studio that the views can be...
c# entity-framework-5 entity-framework-6
asked by puddinman13

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

How to install EntityFramework 5.0 (and other older versions) from NuGet?

I installed EF 5.0 into the .DAL, now I want to install EF 5.0 into .BLL from Nuget...But the default online Nuget package always comes up with 6.0, which gives error when used together with the 5.0 EF I use in DAL....Where can I install the 5.0 version o...
asp.net c# entity-framework-5 entity-framework-6
asked by thenewseattle

Code-first: Mapping entities to existing database tables

I am using Entity Framework 6 code-first with an existing database, but having problems mapping my entities to the database tables....Normally, I would use database-first approach and have my entity and context code generated, but using the designer has b...
.net c# entity-framework entity-framework-5 entity-framework-6
asked by Dave New

Entity framework manually deleted tables cant be generated from EF migration

I have created migration and created the database and the tables . For example the tables are ...A B C D E... . Now again I have changed some part of code and ran ...update-database... command . Everything went smooth and nice and the tables showed the co...
ef-migrations entity-framework-4 entity-framework-5 entity-framework-6
asked by Joy

Upgrade from Entity Framework 5 to 6

After upgrading our project from using Entity Framework 5 to Entity Framework 6 (though NuGets update function) i get the following error on my generated Entities class:...Error 1 The type or namespace name 'Objects' does not exist in the namespace 'Sy...
c# ef-database-first entity-framework entity-framework-5 entity-framework-6
asked by RossBille

Entity Framework Poor COUNT Performance

We are experiencing very poor performance using Entity Framework 5.0 with MySql Connector 6.6.6.0 for count based queries. Our data structure looks like:...Table: Post =========== ID INT PRIMARY KEY MemberID INT NOT NULL SiteID INT NOT...
c# entity-framework entity-framework-5 entity-framework-6
asked by fungus1487

Entity Framework query ToString won't produce SQL query

Through my research I've discovered that, since at least EF 4.1, the .ToString() method on an EF query will return the SQL to be run. Indeed, this very frequently works for me, using Entity Framework 5 and 6....However, occasionally I call this method and...
c# entity-framework entity-framework-5 entity-framework-6
asked by TheRubberDuck

NullReferenceException in EF 5-6.1.1 with two navigation properties to the same type

I'd like to start with that I have a workaround for this issue - but I spent a few hours today figuring out the cause of the exception, so I'd thought I'd share...Given two entities in the domain:...public class User { public int Id { get; set; } ...
c# code-first entity-framework entity-framework-5 entity-framework-6
asked by Matt V

Entity Framework 6 Batch Updates and AuditLog using Entity Framework Extended

I am using Entity Framework 6 and I am using EntityFramework Extended to perform some batch updates and batch deletes. The batch updates and batch deletes work OK however I also need to know the entities that were updated / deleted (i.e. the current and ...
entity-framework entity-framework-5 entity-framework-6 entity-framework-extended
asked by quophyie

Entity Framework 6 - Audit Log

I have a doubt regarding Audit Log under Entity Framework 6.0...I have implemented it but it really slows downs when I update or insert....In other application (Not using EF), I used to create a memory XML with the audit information and then send it to a ...
audit-trail entity-framework-5 entity-framework-6
asked by VAAA

EF Database first how to update model for database changes?

In a class library ...Ado.net Entity Data Model... is has generated POCO classes. These were generated fine for the first time. But database changes are not being reflected. In ...edmx... diagram right clicking and choosing ...Update Model from Database..
.net c# entity-framework entity-framework-5 entity-framework-6
asked by user576510

Is it possible to set a unique constraint using Entity Framework Code First?

I want to enforce Unique constraint in a table & I am using Entity Framework Code-First....Is it possible to add a unique constraint using EF 6 as i believe in earlier versions it was not possible.
asp.net-mvc entity-framework entity-framework-5 entity-framework-6
asked by subi_speedrunner

auto update code first from database model, is it possible?

I have code first classes which are generated from my existing db using ADO.NET Entity Data Model. Now I've added some new tables to the database. ...I want to know if its possible to create associated code classes from the new db tables without (re)creat...
code-first ef-code-first entity-framework entity-framework-5 entity-framework-6
asked by Laziale

WCF OData Service stored procedure call generates "Operation could destabilize the runtime" error with $select option

I've been trying to call a stored procedure through Entity Framework and WCF Data Services (OData). It returns an entity not a complex type. Following walkthroughs found all over the web (like this ...one...), I came up with this code inside my service:..
entity-framework-5 entity-framework-6 odata select wcf-data-services
asked by iamnobody

How does Entity framework implement deleting parent and a child record on the ame SaveChanges()

I have the following two entity sets representing Dept & Emp:-...public partial class Dept { public Dept() { this.Emps = new HashSet<Emp>(); } public int DeptID { get; set; } public string Name { get; set; } public string ...
dbset edmx entity-framework entity-framework-5 entity-framework-6
asked by john Gu

how to insert parent child while doing entityframework.bulkinsert?

I am using Entityframework 6, I am trying to insert a parent-child kind of data in the database. I am using Entityframework.BulkInsert to insert data. I have ...autoIncrement int primary key... in all the tables...My object is as follows :... var paren...
entity entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by user3825003

Page 1 of 2
  • 1
  • 2
  • »

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

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!