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

Object context could not be created.

I'm getting the ...Unable to create object context... error when using Entity framework in ASP.NET MVC....Background...Every time I ...POST... to the controller I'm not getting a response back. I tried going directly to the method of the controller .../Da...
.net asp.net-mvc c# entity-framework
asked by Matt

In a LINQ-to-Entities query, how do you utilize a custom property?

I have a class ...Post... which is an ...Entity Framework... model. It contains a property like this:...public bool Showable { get { return this.Public && this.PublishedDate > DateTime.now } } ...I can use it in a query like this:...from p in db.P...
.net c# entity-framework linq-to-entities
asked by pupeno

Connection string for EDMX

so the story is like this....I have a project, called PA.DLL, which have an entity model inside of it (edmx) file....In another project which i'm referencing to the PA.DLL, i copied the connection string that was created (automatically) when creating the...
connection-string edmx entity-framework
asked by Or A

When utilizing EF4's POCO Template, you get the message "Metadata information not found."

I just installed the POCO Template for EF4. I have a single entity in my model, ...AnnouncementText..., and the T4 files seem to be properly generated. Attempting to access this new entity is throwing the following error when I access the auto-generated...
efpocoadapter entity-framework poco
asked by ladenedge

A stored procedure in Entity Framework is not accessible.

I added a reference to a stored procedure in my edmx file, then right clicked on it and selected "Create Function Import", it was added to the Function Imports folder under EntityContainer in the model browser....As I understand it I should be able to use...
c# entity-framework stored-procedures
asked by jhunter

OLE DB Access Data Source using ADO.NET Entity Framework

Has anyone found a way to make the ADO.NET Entity Framework work with OLE DB or ODBC data sources? Specifically, I need to work with an Access database that for various reasons can't be upsized to SQL....This MSDN page... says:...The .NET Framework includ...
ado.net database entity-framework ms-access provider
asked by Tim Long

How does Entity Framework handle recursive loading?

I have a tree structure in the DB with TreeNodes table. the table has nodeId, parentId and parameterId. in the EF, The structure is like TreeNode.Children where each child is a TreeNode... I also have a Tree table with contain id,name and rootNodeId....At...
entity entity-framework load recursion
asked by Avi Harush

In EF 4, use ApplyCurrentValues.

I just was playing with EF 4 in VS 2010 RC and just found that ApplyCurrentValues dont work when the Property is of type bool and the newly value is false !!!??? ... and it works when the newly value is true . ... I dont know if this is a bug or I'm mis...
.net entity-framework visual-studio-2010
asked by ali62b

What is the purpose of Entity Framework attempting to insert NULL?

I have two tables, Quote and Agent. Quote has a column called AgentID that is a foreign key in Agent....When adding the tables to my model in the VS the Quote class has a reference to Agent....When attempting to add a new quote I create a new quote entit...
.net entity-framework
asked by HitLikeAHammer

Changing the name of the Entity Framework Connection String

How do you change the name of the connection string that Entity Framework models are bound to by default?...Let's say I create an Entity Framework data model named "Model1.edmx" by pointing it to a databased named "MyDb" and picking some objects to map us...
ado.net ado.net-entity-data-model entity-framework
asked by Derek Morrison

EntityFramework.NET: "On the provider connection, an issue occurred when beginning a transaction. Details may be found in the inner exception."

Using Entity Framework in .NET I want to loop through a list of items returned from the database and make updates. ...var qry = (from c in DBEntities.Customer select c); foreach (Object item in qry) { item.FirstName = .... ... etc, other code here ...
.net entity-framework
asked by CWinKY

With entity framework, you may save files to a database.

I have an ASP.NET MVC solution built on Entity Framework with Microsoft SQL Server 2008. I need to create a function that lets my users upload files. ...What I would like is:...A solution that uses the Entity Framework to store files in the Database...A s...
.net asp.net-mvc c# entity-framework upload
asked by Freddy

When the navigation property is null, Linq OrderBy fails.

Working with four tables....Users -> has basic user info including a userid and a departmentid (int)... Groups -> basic group info including a groupid... GroupsMembers -> table that has the relationship between a group and it's members, many to many relat...
entity-framework linq-to-entities nullable sql-order-by
asked by Steph

What are the advantages of using ADO.NET Entity Framework?

I was reading this article about ...ADO.NET Entity Framework... and found it to be very interesting though in the first shot I could not decipher many things. I am reading the article again in order to fathom the real logic behind this....a) A question cr...
.net entity-framework orm
asked by priyanka.bangalore

LINQ to Entity Framework using a MySQL adapter to convert String to Long

I have a table with a column of type ...varchar... where the majority of rows have numerical looking values, that is, each string contains nothing but the digits 0 through 9....+------+ | n | +------+ | 123 | | 234 | | BLAH | -- This row is an excep...
entity-framework linq linq-to-entities mysql type-conversion
asked by Walt Stoneburner

How do you update the ObjectContext cache from the database?

We are loading data from db:...var somethings = Context.SomethingSet.ToList(); ...Then someone deletes or adds rows outside of context. Out context still has caches deleted object, because it doesn't know they were deleted. Even if I call Context.Somethin...
.net c# entity-framework objectcontext
asked by LukLed

Snapshot vs. Self-tracking via WCF in EF4 POCO

Last year I developed a data access service for our project using Entity Framework (.NET3.5 of course) and using Julie Lerhman's book as a guide developed state tracking POCO objects. We use WCF and also have Silverlight 3 clients. We are moving to .NET 4...
entity-framework poco self-tracking-entities snapshot wcf
asked by MrLane

The method ElementAt(i) is not recognized by LINQ to Entities.

I'm using the method ...elementat(Int32)... to get a specific element of a query's result....var mds = db.TDP_MissioniDestinazioni.Where(p => p.MissioneID == missioneRow.MissioneID); destinazioneRow = mds.ElementAt(i); ...LINQ to Entities does not reco...
c# entity entity-framework linq
asked by Luca Romagnoli

Implementation of the Entity Framework Specification Pattern

How-to implement Specification Pattern with Entity Framework ?
c# design-patterns entity-framework
asked by Yoann. B

How to Get Parent Object with All Its Children in Entity Framework 4.0 using Code-First and POCO?

I'm new to EF 4.0, so maybe this is an easy question. I've got VS2010 RC and the latest EF CTP. I'm trying to implement the "Foreign Keys" code-first example on the EF Team's Design Blog, ...http://blogs.msdn.com/efdesign/archive/2009/10/12/code-only-furt...
code-first entity-framework one-to-many poco
asked by SirEel

Page 17 of 347
  • ««
  • «
  • …
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • …
  • »
  • »»

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!