The ADO.NET Entity Framework is a set of Object-Relational-Mapping (ORM) tools for the .NET Framework, since version 3.5 SP1.
3
votes
3answers
19 views
Difference between Models and tables in mvc using entity framework(database first)
I use mvc/razor with database first model entity framework..
What is the difference between creating a Model inside the project and having table.
Example:
I have peopleModel.cs inside ...
0
votes
3answers
28 views
SQL expressions in EF using Lambda
I would like to know if something similar to this (linq to SQL)
customers.Where(c => SqlMethods.Like(c.Name, "%john%"));
is possible to do in Entity Framework. Preferably using lamba ...
0
votes
1answer
19 views
What could be the Advantage of Including Asp.net Simple Membership Tables as Part of Your Entity Framework Model
I read this blog.
Id describes how we can include Asp.net SimpleMembership tables as a part of our application Models.
I am just curious to know what could be the benefit ?
0
votes
1answer
15 views
LINQ - loading data from tables with circular references
I have the below tables where the StationAvailableMoves.StationID and StationAvailableMoves.AvailableNextStationID both have relationships on the Station.ID column.
I am using this to control a ...
0
votes
1answer
20 views
how to load the foreign key values in WPF into a combobox
I have a datatemplate controled control which is is being generated based on a EF collection of data which is set as the Datacontext of this control. The template has a also a combobox inside which ...
0
votes
1answer
15 views
Cant create the DB with TPH mode.
I am developing MVC application.
I am trying to build the project by model first technique.
I have created the three class.
Company - Base/Parent class.
Customer - Child class inherited from ...
1
vote
1answer
13 views
Adding 'GO' statements to Entity Framework migrations
So I have an application with a ton of migrations made by Entity framework.
We want to get a script for all the migrations at once and using the -Script tag does work fine.
However...it does not add ...
0
votes
1answer
24 views
User defined controller(To be inheritted by all controllers) with instantiated DbContext
So I have my basic controller with an inherited user defined controller with a call from the Db
public class HomeController : MyAppController
{
public ActionResult Index()
{
string ...
1
vote
3answers
89 views
dynamic linq where expression
I have an Linq appliacation and I need to get a dynamic where expression.
I use class:
public class EntityColumnsField
{
public String ColumnName { get; set; }
public Type ColumnType { get; ...
2
votes
0answers
37 views
Downgrade Entity Framework 5 to 4
In association with:
Outer Apply in EF5
If you can, then please edit this linq query as to not use OUTER APPLY.
The developer stations have .Net 4.0, the client computers .Net 4.5.
Entity Framework ...
0
votes
1answer
29 views
Entity Framework execution order
Can anyone tell me if on the line which calls CreateObjectSet whether or not it returns the whole table and then does the Where expression (in memory) or is the where expression included in the ...
0
votes
0answers
8 views
ODP.NET ASP.NET EF The specified named connection is either not found in the configurationEntityClient provider
I am getting this error in my web page. "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid" I cannot ...
1
vote
0answers
23 views
Same Table used in Foreign Keys
We're using Entity Framework, model rendered from a database.
In the database, we have a table, which has two foriegn keys to the another table.
So:
CREATE TABLE TABLEB
(
id INT NOT NULL PRIMARY ...
0
votes
0answers
19 views
Lazy Loading One To One Child Entities in Entity Framework 5
I have an entity named Event that can be one of 3 types - Image, Text, or Video. I am trying to map each Event to it's child type when using linq, but I can't seem to figure out how. Here are my ...
0
votes
1answer
34 views
Entity Framework 4.1 : Linq-to-entities not compatible with sort
I am using below sorting method:
public static IEnumerable<TEntity> OrderBy<TEntity>(this IEnumerable<TEntity> source, string orderByProperty,
...