entity-framework-4.3.1 Questions

2

I am getting this exception from Entity Framework 4.3.1 (incidentally from an ASP .NET MVC 3 web application built in Visual Studio 2010 against .NET 4): System.InvalidOperationException: The ch...
Tyrannize asked 4/10, 2012 at 9:28

1

Solved

I have a small model created using code-first approach - a class City which contains only information about city name. public class City { public City() { Posts = new List<Post>(); } p...

3

Solved

After using EFProfiler (absolutely fantastic tool BTW!) for profiling a few of our Entity Framework applications, it seems that, in most cases, all of the Object Contexts are not closed. For examp...
Superabundant asked 4/10, 2012 at 14:22

1

Solved

In Entity Framework 4.3.1 I had the following Models, and they worked fine: public class BaseUser { [Key] [MaxLength(100)] public string Username { get; set; } } [Table("AppUser")] // Ensures ...
Decoupage asked 8/9, 2012 at 20:5

3

Solved

I've got a database with a table of about 16,500 cities, and an EF Data Model (Database-First) for that database. I preload them into memory with the code: Db.Cities.Load() ...then when it's ti...

3

Solved

I am using MVC3, Entity Framework v4.3 Code First, and SimpleInjector. I have several simple classes that look like this: public class SomeThing { public int Id { get; set; } public string Name ...

1

Solved

I am using Entity Framework 4.3.1 using the DbContext POCO approach against a SQL Server 2012 database. I have just two tables in the database and they look like this: NOTE: There are no forei...
1

© 2022 - 2024 — McMap. All rights reserved.