Quantcast
Channel: Entity Framework
Browsing all 10318 articles
Browse latest View live

Created Issue: Exception unclear when 2 classes with same name are mapped...

If I have 2 classes both named "class1" in "namespace1" and "namespace2", and map them through the same DbContext, EntityFramework will throw an Invalid Operation saying "class1" is not mapped. The...

View Article


New Post: Query generation in batch insert scenarios

Hi Luke, I think you are moving in the right direction. If creating a single tree proves too cumbersome an alternative could be adding an overload that accepts an IEnumerable of CommandTree instead of...

View Article


Edited Feature: Allow sticking user data in MetadataItems [252]

When we split the SqlClient provider extensions for EF from EntityFramework.dll, we found that the internal provider was caching SQL fragments associated with EntitySets in...

View Article

Edited Issue: Hide IPOCO interfaces in POCO Proxies [256]

Bug http://entityframework.codeplex.com/workitem/184 talks about enabling JSON serialization by hidding _entityWrapper. We also have a few other strange things in POCO proxies, like the...

View Article

Edited Feature: DbCollectionEntry should have Add, Remove, Attach methods [271]

For a particular user case, I want to manipulate a collection but prevent it from lazy loading. For Remove to have any effect, I have to do something like this: db.Configuration.LazyLoadingEnabled =...

View Article


Edited Issue: PowerShell commands should handle empty solutions or no open...

Repro steps:1. Create a project 2. Install EntityFramework package3. Close solution4. Type Enable-Migrations on Package Manager ConsoleExpected: Get a simple error saying that we couldn't find a...

View Article

Edited Issue: Add DbSet.SqlQuery to allow materializing entities of a derived...

We are missing this overload that takes TDerived where TDerived:TEntity. People currently can use context.Set<TDerived>().SqlQuery instead but it is rather strange specially if you didn't include...

View Article

Edited Issue: Model caching for Code First should consider...

We currently consider derived DbContext type and provider type, however the same type can work with different versions of the database engine that can support different functionality, e.g. different...

View Article


Edited Issue: Classes generated by EF PowerTools should be partial [294]

Although the intent isn't to have partial classes as the primary way of extending these "generate-once" classes, people need to do this often enough. See: http://bit.ly/Lm0h7a. Making classes partial...

View Article


Edited Feature: EdmxWriter should work regardless of how the model was...

There are multiple design-time and runtime scenarios in which the ability to obtain metadata about a model and mapping us useful. An example of this is the ability to load a model pragmatically into...

View Article

Edited Issue: Tracking: Any future versions of EF Designer setup for VS2010...

We plan to ship XSD/XML files for EF configuration section as part of MVC4 setup for VS2010. If in the future we refresh EF Tools for VS2010 we should use the same component Ids so that reference...

View Article

Edited Issue: [UX] Desgigner surface: compartment colors should be based on...

Currently we use Gainsboro and WhiteSmoke, but we should use a color based on the same hue as the fill color of the shape for better appearance.

View Article

Source code checked in, #cb15f2e7245b

Updated ContextKey and associated tests to not allow whitespace

View Article


Edited Issue: UpForGrabs: Use non-obsolete Monitor.Enter methods [424]

LockedAssemblyCache currently has this code: internal LockedAssemblyCache(object lockObject, Dictionary<Assembly, ImmutableAssemblyCacheEntry> globalAssemblyCache) { _lockObject = lockObject;...

View Article

New Post: SQL Variant support?

I don't see SQL Variant support in the issue tracker.  Am I missing it or is it really not on the radar to provide support for SQL Variant in the EF SQL Server Provider?

View Article


Commented Issue: Allow subclasses to map field to same database column with...

When using TPH inheritance, Code First requires every field defined in a subclass to be mapped to a unique database column. However, there are scenarios where it would be simpler for subclasses to map...

View Article

Commented Issue: DbQuery to ObjectQuery replacement fails in some situations...

Current implementation of DbQueryVisitor tries to handle cases where the query is closed over variables containing DbQuery values by simply replacing them with the underlying ObjectQuery instances....

View Article


Commented Issue: DbQuery to ObjectQuery replacement fails in some situations...

Current implementation of DbQueryVisitor tries to handle cases where the query is closed over variables containing DbQuery values by simply replacing them with the underlying ObjectQuery instances....

View Article

Commented Issue: Crash in EF5 with SELECT N+1 query [581]

query:using(var ctxt = new NWDataContext()){ var products = ctxt.Products.Where(p => p.ProductName.StartsWith("S")); foreach(var v in products) { Console.WriteLine("{0} {1} {2}", v.ProductName,...

View Article

Created Issue: EF6 throws an exception [Invalid column name...

Repro steps: - Create a console application in Visual Studio 2012 - Install official EF5 nuget package to the project - Copy the code below, and execute - Verify that a DB with the name "MyTestDB" is...

View Article
Browsing all 10318 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>