New Post: Automatically adding EntityTypeConfiguration
Unai,We discussed this proposal and would be happy to accept this contribution, although with a few modifications from what is described above. Details can be found in the design meeting notes here:...
View ArticleNew Post: Weird behavior with DbConfiguration [EF 6]
I have created simple test console application. In it I created separate namespace called CodeFirst where I put all CodeFirst related code. I have decided to test EF6 DbConfiguration, and here's what I...
View ArticleNew Post: Bug: Update-Database –TargetMigration: $InitialDatabase Roll forward!
I Study migration from :http://msdn.microsoft.com/en-US/data/jj591621and test: Update-Database –TargetMigration: $InitialDatabase no roll back to empty database.
View ArticleNew Post: DBContext Connection problems with SQL2012 contained database users?
Hi there,in my Situation "UserOne" is a contained database user (without sqllogin) and the user is dbo in the contained database. With this user i create other "user with password" in the contained...
View ArticleNew Post:...
Hello Michael,Thanks for your interest on contributing to EF. We will discuss your idea in more detail in an upcoming design meeting, but I wanted to respond with some initial thoughts:In EF there is a...
View ArticleNew Post: EF6 Views compatibility
If you are asking about E-Sql view definitions they should be the same for EF5 and EF6. If you are asking about the code generated by EdmGen, EF Power Tools etc. then it will not work - there were...
View ArticleNew Post: EF6 Views compatibility
Hi moozzyk, thank you for the response, i was asking about the code generated.Since my edmx is really big, i need to pre-generate views and and i'm interested in EF6 view generation because in my case...
View ArticleNew Post: EF6 Views compatibility
Hi Max,Yes. It is possible to use EF6 views in EF5 apps after some modifications. I just tried - here is what you would have to do:Change namespace for EntityViewGenerationAttribute...
View ArticleNew Post: Additional ObjectContext and EntityConnection constructors
I would like to ask for implementing currently non-existing public constructors for the ObjectContext and EntityConnection classes that would contain a flag that indicates if the underlyingexplicitly...
View ArticleNew Post: Weird behavior of DbConfiguration [EF 6]
Sektor,In the example where you use DbConfiguration you are setting a default connection factory. The default connection factory is used by EF when creating a connection by convention. In other words,...
View ArticleNew Post: Additional ObjectContext and EntityConnection constructors
Hi tamasflamich,Are you suggesting that you would like to contribute this change or are you asking us to make the change? If the former, then we'll discuss and get back to you on whether or not we...
View ArticleNew Post: Additional ObjectContext and EntityConnection constructors
Hi Arthur,After a quick glimpse on the existing code, it seems that this should be fairly easy to implement, so I would kindly contribute this change. I am waiting for the outcome of the discussion.I...
View ArticleNew Post: FxCop Suppressions For Designer Generated Code?
You get the same problem if you use VS' Static Code Analysis tool. If you enable Code Analysis on Build and set the rule set to Microsoft Basic Correctness Rules, you get a ton of errors from the...
View ArticleNew Post: Weird behavior of DbConfiguration [EF 6]
Hi, Arthur! Thanks for thorough explanation! Yes, I just begin playing around with Code First, and your explanation helped me greatly! Thanks once again! With regards,Eugene
View ArticleNew Post: Entity's state isn't updated
Well, I began playing around with Code First.I have created simple database and appropriate code for Code First (VB 11).Class FLContext : Inherits DbContext Property Districts As DbSet(Of District)...
View ArticleNew Post: SQL Server 2012 SEQUENCE support
Will EF support SQL Server 2012 SEQUENCE? As for EF6, it doesn't support it.
View ArticleNew Post: Performance issues
We were doing a performance test of EF 5 and EF 6(alpha) against NHibernate.Our test consisted of inserting records in one single table (without constraints, etc), running multiple threads. We found...
View ArticleNew Post: Entity's state isn't updated
The problem here is that the code is not actually using proxies. This is because the entity instances are created using the New operator before being added to the context. The New operator always...
View ArticleNew Post: Performance issues
Hi axceler,Many things can impact performance and it's to identify what can be done without more details. Can you post the test code you are using?Thanks, Arthur
View Article