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

Association end is not mapped in ADO entity framework

I am just starting out with ADO.net Entity Framework I have mapped two tables together and receive the following error:...Error 1 Error 11010: Association End 'OperatorAccess' is not mapped. E:\Visual Studio\projects\Brandi II\Brandi II\Hospitals.e...
ado.net entity-framework vb.net visual-studio-2008
asked by Sean

Error: The object cannot be deleted because it was not found in the ObjectStateManager

Trying to get a handle on Entity Framework here and I am hitting some speed bumps... I have a Get() method that works fine and has been tested, but my Delete method is not working:... public static void Delete(string name) { J1Entities db = ...
c# entity-framework linq-to-entities
asked by naspinski

Entity Framework: Using transactions and rollbacks... Possible?

Issue: (With Sql 2005)...How can I query the database while the transaction is up? (Since it locks the table)...How can cause a transaction to rollback and then close itself to allow the table to be queried?...So I found this much:...[TestMethod] public v...
entity-framework transactions
asked by Programmin Tool

Is there a way to export the .edmx diagram from VS2008 to Visio?

Some people want to see the DB structure and dont have VS, is there a way to do this? Or any other way to export it outside of a screencapture (it is a huge diagram)....Thank you.
entity-framework linq-to-entities visio
asked by naspinski

Entity Framework - Working with Detached entities issue

Ok, so in this example I have a parent entity called Template. A Template always has a type. The type is an FK that is very likely to already exist. The problem comes when creating a new Template and adding to it the type. Once the type is added and you g...
c# entity-framework
asked by Michael M.

How to force ADO.NET Entity Framework to regenerate code?

I've run into a snag with a ADO.NET Entity Framework model and a ADO.NET Data Service that is making it available. The model and data service are compiling without any problems or warnings when they come out of source control. However when I run the ser...
entity-framework wcf-data-services
asked by Ken Henderson

Defining an Entity Framework 1:1 association

I'm trying to define a 1:1 association between two entities (one maps to a table and the other to a view - using DefinedQuery) in an Entity Framework model. When trying to define the mapping for this in the designer, it makes me choose the (1) table or v...
.net ado.net entity-framework visual-studio
asked by Craig Fisher

Why does an Entity Framework Connection require a metadata property?

I switched my DAL from using LINQ over to Entity Framework. Because my application connects to different databases depending on the current user, I need to dynamically create the DataContext at run time and pass in the appropriate connection string. How...
connection connection-string data-access-layer database entity-framework
asked by John Bubriski

How do I delete an object from an Entity Framework model without first loading it?

I am quite sure I've seen the answer to this question somewhere, but as I couldn't find it with a couple of searches on SO or google, I ask it again anyway......In Entity Framework, the only way to delete a data object seems to be ...MyEntityModel ent = n...
asp.net-mvc entity-framework linq-to-entities
asked by Tomas Aschan

When NOT to use the Entity Framework

I have been playing around with the EF to see what it can handle. Also many articles and posts explain the various scenarios in which the EF can be used, however if miss the "con" side somehow. Now my question is, ...in what kind of scenarios should I sta...
.net architecture c# entity-framework
asked by driAn

How to use ADO.net Entity Framework with an existing SqlConnection?

I have an existing asp.net website that uses an SqlConnection....I have added the ADO.net Entity Framework....I have successfully connected to the database and created the .edmx file....I am able to connect through the Entity Framework with the connection...
ado.net entity-framework sqlconnection
asked by EZ.

C# LINQ Where Predicate Type Arguments

I have an XElement with values for mock data. ...I have an expression to query the xml:...Expression<Func<XElement, bool>> simpleXmlFunction = b => int.Parse(b.Element("FooId").Value) == 12; ...used in:...var simpleXml = xml.Elements("Foo").Where(si...
c# entity-framework expression-trees lambda
asked by blu

Entity Framework Dynamic Where Clause

I have a query like:...var function = GetSomeExpression(); using (FooModel context = new FooModel()) { var bar = context.Bar.Where(function); } ...I'd like to make a generic method that can execute Where against different Entities in the context....
c# entity-framework generics
asked by blu

How do you do full text search (FTS) with Linq to ADO.NET entity framework?

Now that SQL Server 2008 has full text search built in. I'm looking to use it to power my website's search. I'm also looking at using ADO.NET entity framework for my ORM but I was wondering how do you do full text search (FTS) with Linq to ADO.NET entity ...
c# entity-framework full-text-search linq-to-entities sql-server-2008
asked by ajma

C# Expression Tree Parameter for Parent Navigation Property

How can I create a ParameterExpression for the parent side of a 1 to * Navigation Property?...The following works for the child entity:...var parameter = Expression.Parameter( typeof(T), // where T is the entity type GetParameterName()); // helper...
c# entity-framework expression-trees lambda
asked by blu

ADO.NET Entity Framework: Update Wizard will not add tables

I ...added a new ADO.Net Entity Data Model... into my project and used the ...Update Wizard... to add tables into the model. Five of the selected tables were added to the design surface. Two other tables will not add. I select them in the wizard and cl...
.net ado.net entity-framework primary-key visual-studio-2008
asked by Robert Claypool

Stored procedures with ADO.NET Entity Framework

I'm trying to use a stored procedure in the entity framework. I had the model created initially without the stored proc. I then went into Update Model from Database and selected the stored procedure I wanted and then added it through the function import. ...
.net ado.net entity-framework
asked by Satish

What are good design practices when working with Entity Framework

This will apply mostly for an asp.net application where the data is not accessed via soa. Meaning that you get access to the objects loaded from the framework, not Transfer Objects, although some recommendation still apply. ...This is a community post, so...
asp.net entity-framework visual-studio-2008
asked by ADB

Entity Framework + SQLite deployment

I have a ASP.NET MVC app that is using SQLite database through Entity Framework. Everything works on VS 2008's local development webserver....However, deploying the web app to my service provider causes this error:...[ArgumentException: Unable to find the...
asp.net-mvc entity-framework sqlite system.data.sqlite
asked by Pompair

Entity framework and many to many queries unusable?

I'm trying EF out and I do a lot of filtering based on many to many relationships. For instance I have persons, locations and a personlocation table to link the two. I also have a role and personrole table. ...EDIT: Tables: Person (personid, name) Perso...
.net entity-framework many-to-many
asked by John Landheer

Page 3 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!