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)

6940 results

Good Entity Framework sample applications?

I am looking for some good asp.net sample applications which use Entity Framework. I saw a couple apps for NorthWind (one was MVC based). Looking for one with is more sophisticated than the simple apps at MSDN (HRSkillsCombined, CourseManager,AdWksSalesWi...
entity-framework
asked by Abdu

ADO EF - Errors Mapping Associations between Derived Types in TPH

Background...I am writing a data access library using the ADO Entity Framework in Visual Studio 2008 SP1 using the .NET Framework 3.5 SP1. I am trying to create associations between two entities that are both derived from an abstract type. I am representi...
c# entity-framework orm
asked by Zach Burlingame

LINQ to Entities for subtracting 2 dates

I am trying to determine the number of days between 2 dates using LINQ with Entity Framework. It is telling me that it does not recognize Subtract on the System.TimeSpan class...Here is my where portion of the LINQ query....where ((DateTime.Now.Subtract(v...
datetime entity-framework linq-to-entities
asked by Michael I

Is there an in-memory provider for Entity Framework?

I am unit testing code written against the ADO .NET Entity Framework. I would like to populate an in-memory database with rows, and make sure that my code retrieves them properly....I can mock the Entity Framework using Rhino Mocks, but that would not be ...
entity-framework rhino-mocks
asked by Michael L Perry

Function Imports in Entity Model with a non-Entity Return Type

I have a stored procedure in my Entity Data Model and added it to the function imports....Problem is... Visual Studio generates the function code in the model's code-behind if and only if I specify the return to be an entity type. ...Scalar and null retu...
.net .net-3.5 ado.net entity-framework visual-studio
asked by Robert Claypool

How to use Default column value from DataBase in Entity Framework?

I have a Date column in table which has default value or binding as getutcdate(). I want to use this in entity framework.On generating EDM I was able to find "Default Value " property at column level but I think it is for hardcoded value. ...Please let me...
.net entity-framework
asked by Mak

WCF Contracts from Entity Framework?

I've been coming up with a lot of dead ends on this question. Supposedly, .NET 3.5 SP1 has Support for ADO.NET Entity Framework entities in WCF contracts. But when I look for solid info on it I'm not getting a lot of answers. I found this one snippet on...
entity-framework wcf
asked by Weej

How can I see the Entity Framework's pending changes?

I'm creating an application with the ADO.NET Entity Framework....I can step through my code line-by-line while debugging and watch SQL Server Profiler for every query executed, but I can't figure out where all those SQL commands are coming from!...Sometim...
.net c# entity-framework
asked by Zack Peterson

Entity framework and VARBINARY

I’m using the .NET entity framework and I’ve got one entity containing a varbinary. Is there an easy way to get the size of the varbinary in the codebehind, efter it’s been retrieved from the database?...I’m thinking there might be some way to get...
asp.net c# entity-framework sql-server-2005
asked by Marcus L

How to create LINQ Expression Tree to select an anonymous type

I would like to generate the following select statement dynamically using expression trees:...var v = from c in Countries where c.City == "London" select new {c.Name, c.Population}; ...I have worked out how to generate...var v = from c in ...
c# entity-framework expression-trees linq linq-to-entities
asked by Tom Deloford

Entity Framework with XML Files

Can someone point me to a good tutorial explaining the Entity Framework using an XML file instead of a database? I have seen some good tutorials with SQL databases, but I can't make the leap to an XML file....Thanks!
.net c# entity-framework xml
asked by Tim

Entity Framework .Include() Navigation of another Navigation property

I have an entity ...Test.... It contains a Navaigation Property ...Question... and ...Question... contains a Navigation Property ...QuestionLocale.......var test = context.Tests .Include("Question") .FirstOrDefault(); ...works as expected. B...
.net entity-framework
asked by chbu

How to get rid off "An entity object cannot be referenced by multiple instances of IEntityChangeTracker"?

I have a model in Ado.Net EF. I have a one to many relation and when I want to Add the entities I get the error..."An entity object cannot be referenceed by multiple instances of IEntityChangeTracker"...Any clue?...Something similar to ...Template templat...
entity-framework
asked by Mariano

Can I use Entity Framework with ASP.NET Membership?

I'm creating (really, re-creating) an app that has existing user and other data in MS-Access databases. The data will be moved to SQL Server, and part of that involves migrating users. I want to use EF to do ORM, and I am pretty sure I know what the dat...
.net asp.net asp.net-membership entity-framework
asked by oasasaurus

Update entity framework objects

I transfer data between the entity framework and the business layer and user layer by using Data Transfer Objects. I do have some doubt, if I retrieve an object which is converted to a DTO, how do I update the correct object in the entity framework and no...
entity entity-framework
asked by user75278

"Visual studio 2008 SP1" ADO.NET Entity Data Model template not found

I have installed Visual Studio Team System 2008 Architecture version: 9.0.30729.1 SP and Microsoft Net Framework 3.5 SP1....When I'm going to add a new item I can't find ADO.NET Entity Data Model template....What's happening?...Thanks!
ado.net entity-framework visual-studio-2008
asked by VansFannel

Best practices for using the Entity Framework with WPF DataBinding

I'm in the process of building my first real WPF application (i.e., the first intended to be used by someone besides me), and I'm still wrapping my head around the best way to do things in WPF. It's a fairly simple data access application using the still...
entity-framework wpf
asked by Ken Smith

Can an ASP.NET MVC View use a Model from a different project?

I've got an ADO.NET Entity Framework class called Node in a WPF project. I want to use it in a different ASP.NET MVC project within the same solution....My Node controller:...Public Class NodeController Inherits System.Web.Mvc.Controller Functio...
asp.net-mvc entity-framework
asked by Zack Peterson

Server-generated keys and server-generated values are not supported by SQL Server Compact

I just started to play with the entity framework, so I decided to connect it to my existing SQL Server CE database. I have a table with an IDENTITY(1, 1) primary key but when I tried to add an entity, I've got the above-mentioned error....From ...MS Techn...
compact-framework entity-framework
asked by Sergey Aldoukhov

Update statement with Entity Framework

Simple question, is it possible to achieve this query this with Entity Framework when updating one entity?...update test set value = value + 1 where id = 10
entity-framework executenonquery
asked by Drevak

Page 4 of 347
  • «
  • 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

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