Edited Issue: Cannot generate the entity model diagram from the...
repro steps:<br />0. Download the AdventureWork sample database from AdventureWorks2012 Data File <br />1. Create a Class Library project.<br />2. Add a new item of ADO.NET Entity...
View ArticleEdited Issue: Perf: TruncateTime Performance Problem [696]
On SQL Server, called from Entity Framework, the EntityFunctions.TruncateTime function is translated as follows: CAST( convert (datetime2, convert(varchar(255), [Extent1].[DateTimeBucket], 102) , 102)...
View ArticleEdited Issue: UpForGrabs: Perf: TruncateTime Performance Problem [696]
On SQL Server, called from Entity Framework, the EntityFunctions.TruncateTime function is translated as follows: CAST( convert (datetime2, convert(varchar(255), [Extent1].[DateTimeBucket], 102) , 102)...
View ArticleEdited Issue: Incorrect results are returned when performing a 'top per...
A full explanation and reproduction (incl. screenshots, SQL scripts, repro solution, etc) are at: http://stackoverflow.com/questions/12138353 Brief outline: When performing a .FirstOrDefault() on an...
View ArticleCreated Issue: '.' is not handled in the [Table] annotation [716]
Code:[Table("Schema.Comment")] public class Comment{ public int Id { get; set; } public string Text { get; set; } public string Author { get; set; } public DateTime Timestamp { get; set; } public int...
View ArticleCreated Issue: Exceptions thrown in the [Table] annotation put the database...
If an exception is thrown in the [Table] annotation when an application is run the database is created, but no metadata or tables are generated. In this situation we should either not create the...
View ArticleCommented Issue: Exceptions thrown in the [Table] annotation put the database...
If an exception is thrown in the [Table] annotation when an application is run the database is created, but no metadata or tables are generated. In this situation we should either not create the...
View ArticleEdited Feature: Allow DbContext to be created with an already-open existing...
DbContext can only be created with a closed connection, there are scenarios where it would be helpful if the connection could be open when creating the context (such as sharing a connection between...
View ArticleUpdated Wiki: Custom Conventions
Custom Code First Conventions Code First includes a set of simple, model-wide behaviors that provide sensible configuration defaults for the parts of your model that have not been explicitly configured...
View ArticleSource code checked in, #6b98e7b7d2a3
Fix for EF6 Performance Regression: EntityType.get_Properties Problem: Caching of the Properties collection was removed as part of enabling mutability. Solution: Restore caching but only after the...
View ArticleReopened Issue: Schema partitioning breaks on fresh Databases [524]
when the migrations database is changed in the DbContext and application runs before migrations are enabled, initial Update-Database failsRepro steps:Create sample app, edit BlogContext.cs overriding...
View ArticleEdited Issue: Schema partitioning breaks on fresh Databases [524]
when the migrations database is changed in the DbContext and application runs before migrations are enabled, initial Update-Database fails<br /><br />Repro steps:<br />Create sample...
View ArticleClosed Issue: Schema partitioning breaks on fresh Databases [524]
when the migrations database is changed in the DbContext and application runs before migrations are enabled, initial Update-Database fails<br /><br />Repro steps:<br />Create sample...
View ArticleEdited Feature: Build: Detect absence of Code Contracts [367]
Fail early if CC isn't installed.
View ArticleClosed Feature: Build: Detect absence of Code Contracts [367]
Fail early if CC isn't installed.Comments: No longer relevant.
View ArticleSource code checked in, #9eafc4e06083
More updates for issue 45. Removing exception if connection is not closed, re-adding the exception for re-opening an already-open connection and updating tests to match Changing EntityConnection to use...
View ArticleEdited Issue: Error 3032 IDBSet.Find(id) when using inheritance [463]
All,When using Entity Framework 5 Code First, with Table Per Hierarchy. This combined with an Repository and Unit of Work (tried several implementations). I'm having the following error:(34,10) : error...
View ArticleEdited Issue: DbMigrations: RenameTable doesn't rename PK or FK [489]
Using DbMigrations on a code first project (c#, 4.5, SQL Server 2012), I've just encountered an error following a table rename operation. This passed validation, but produced an error on the...
View ArticleEdited Issue: Wrong drop order in scaffolded Down() [480]
When generating migrations from code-first, Down() is always generated to first drop indexes, then foreign keys and then tables. This causes a problem with some rdbms which require an index on the...
View ArticleEdited Feature: SSDL EntityContainer name used as default SQL schema [370]
When generating SQL we use the SSDL EntityContainer Name attribute as the default schema name. Can we stop doing this and thus generate unqualified SQL?
View Article