The ADO.NET Entity Framework is a set of Object-Relational-Mapping (ORM) tools for the .NET Framework, since version 3.5 SP1.
0
votes
0answers
10 views
EFTracingProvider The 'data source' keyword is not supported
I am trying to use Entity Framework Tracing Provider to trace EF query, I get The 'data source' keyword is not supported. error:
I have a DbContext in a project call test.domain:
public partial ...
1
vote
1answer
41 views
EF extension method: “This function can only be invoked from LINQ to Entities.”
I have made an extension method to EF entities:
public static IEnumerable<T> WildcardSearch<T>(this IEnumerable<T> entity,
string ...
0
votes
0answers
24 views
Entity Framework Code First DB error
I'm trying to make a web application MVC4 in c#.
I'm using the same DB than the DB created initially for users (anuthentication) (more easy to deal in connexionstrings).
So I made 3 models and the ...
0
votes
1answer
16 views
ASP.NET MVC 4, EF5, Store additional data in many to many junction table
I have a Code First MVC 4 Web app - there's a many to many relationship between Places:
public virtual int PlaceID { get; set; }
public virtual string Name { get; set; }
public virtual ...
1
vote
1answer
30 views
Building intranet with MVC, EntityFramework, AngularJS and Breezejs?
As a learning project, i want to make a rather simple intranet project (login/out, create new users, projects etc) with some new libraries/frameworks,
But i am unsure as to how they all work together ...
-5
votes
3answers
35 views
Convert “dd/mm/yy” format to “month, day, year” in EF [closed]
Is there a way convert 'dd/mm/yy' format data to "month, day year" in Entity Framework?
For example, I want to convert '20/12/2013' to 'December, 20 2013'.
How can I do it?
0
votes
0answers
12 views
Role assignment using SImpleRoleProvider in ASP.NET MVC 4
I've implemented a customized version of SimpleMembershipProvider with custom table structures. The webpages_Membership table has been bypassed due to the use of an external authentication provider. ...
0
votes
0answers
11 views
Format of the initialization string does not conform to specification starting at index 0 on azure
Have been with thi problem for hours, this is my connectionstring:
<connectionStrings>
<add name="OL4RENTDb"
...
2
votes
0answers
30 views
Entity Framework SaveChanges Query
I have a function to save product into db. How can I get the sql statement for SaveChanges()?
I want the query, so that I can store it in the db for database changes logging.
public void ...
0
votes
2answers
21 views
Foreign key to the same table in EF - Getting an error
Basically I got the following table:
[Table("UserProfile")]
public class UserProfile
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int UserId { get; ...
0
votes
2answers
13 views
I have three projects that share the same DB, whats the best way to use EF across all?
I have three projects (WCF projects, not clients), I have one database for all, now how will I use EF with this? should I make a fourth project which will have the db context and the entities and then ...
0
votes
0answers
11 views
Entity Framework (5) notation for cascade delete of tables for subclasses
I have a class A which has a 1-to-many relationship with class X.
In class X, using the "Required" attribute, a cascade delete relationship is established so when I delete A all related Xs are ...
0
votes
0answers
20 views
Eager loading entities with raw SQL
I know that it is possible in Entity Framework (Code First) to load an entity using raw SQL like this:
using (var context = new BloggingContext())
{
var blogs = context.Blogs.SqlQuery("SELECT * ...
0
votes
0answers
23 views
Configuring property name of intermediate table for many to many relationship, EF 5.0
Title of question might not be self-explanatory but I will try to explain it more.
I'm using Model first approach for designing model and specifically trying to setup many to many association between ...
0
votes
1answer
15 views
Entity Framework : map duplicate tables to single entity at runtime?
I have a legacy database with a particular table -- I will call it ItemTable -- that can have billions of rows of data. To overcome database restrictions, we have decided to split the table into ...