New Post: FxCop Suppressions For Designer Generated Code?
Here is how I solved this issue.
View ArticleNew Post: FxCop Suppressions For Designer Generated Code?
It would be better to edit the .tt file in the project, then the code can be checked out and edited by the user directly from source control without additional work, rather than requiring the user to...
View ArticleNew Post: EDMX XML Namespaces issue
Hi Max, We also faced same problem when we migrate EF5 to EF 6 . Solution : VS 2012 there is a separate install that's required if you want to keep a .Net 4 project on edmx v3. Entity Framework 6 Tools...
View ArticleNew Post: Support SQL Server HierarchyId data type
Hi I have a problem can you help me? I successfully installed EntityFrameworkWithHierarchyId through NuGet but I received this error : Error 1 The type 'System.Data.Entity.DbContext' is defined in an...
View ArticleNew Post: Support SQL Server HierarchyId data type
Please read my previous post. You need to modify the assembly which references the official EntityFramework (PublikKeyToken = b77a5c561934e089)
View ArticleNew Post: EF 6.1.3 released, yet still not documented as released here on...
Hi, EF 6.1.3 was released to nuget.org on March 10, 2015. Yet, the release is not reflected in the Downloads section here on CodePlex, nor is there published any release notes. When will these things...
View ArticleNew Post: Overriding the default schema "dbo"
Hi, somewhat old question with no answer, so here is something at least: Introduced in EF6 was the ability to override the default schema for a given context (see...
View ArticleNew Post: Overriding the default schema "dbo"
I am afraid that this is not a solution from the point of view of the EF provider service. It seems to me that the right behavior of the provider would be: if the EF caller does not specify schema...
View ArticleNew Post: Performance issue with single value constant.
We are creating expressions like this:var one = new int[] { 0 }; var result = (from t in Table select new TableModel() { Name = t.Name, List = (from o in one where t.SomeValue != null select...
View ArticleNew Post: Unit testing with EFa3
Is there a way to add support for .Project().To<MyType>()? The conversion is take care of by AutoMapper. This fails when you have Project().To<MyType>() in your code....
View ArticleNew Post: Unit testing with EFa3
@adammendoza that exception is thrown if you invoke an EF-specific method in the query tree, e.g. one of the methods in DbFunctions, SqlFunctions or the obsolete EdmFunctions and the you try to execute...
View ArticleNew Post: Unit testing with EFa3
@divega, thanks for your answer. Can someone point me to some information or tutorials that I can use to add this functionality to the FakeDBSet? Or would this need to be added to a separate extension...
View ArticleNew Post: Performance issue with single value constant.
The solution was deceptively simple. Make the single value list is a constant inside the expression (rather than a parameter) and the recompileRequired code does not get triggered:var result = (from t...
View ArticleNew Post: How to implement IEntityDesignerLayer correctly?
I try to implement IEntityDesignerLayer. What is the purpose of Properties property? It has never been accessed during my debugging. Where do I get IServiceProvider to return from ServiceProvider...
View ArticleNew Post: EF6, Enumerable.Contains and auto compilation
I am a bit stunned by this information. While we are able to use SP & TVP in EF6, if we write the L2E query, we loose this functionality. In my aplication all of the queries have...
View ArticleNew Post: Mapping of scalar UDF with enum as return type
Hi, I have custom store convention which is used to translate method calls found in LINQ queries to scalar UDF functions. All functions are decorated with DbFunction attribute. Everything works as...
View ArticleNew Post: Async execution DbConcurrencyException handling
Consider the infamous exception:A second operation started on this context before a previous asynchronous operation completed. Use 'await' to ensure that any asynchronous operations have completed...
View ArticleNew Post: EF6 Mysql Cannot resolve table's primary key
I add ado.net entity data model from vs2013, choose mysql database, in database have primary key for each table,and someone Foreign Key, but vs2013 warzid cannot correct build edmx file, output: error...
View ArticleNew Post: Mapping of scalar UDF with enum as return type
See my response to the same question you asked here: https://codefirstfunctions.codeplex.com/discussions/635019
View ArticleNew Post: Is it possible to subscribe to entity creation or entity rename?
I need to mark some entities with some properties which are unique for the model. I. e. my property is marking entity so then I will then generate some code using that entity name. But if I attach this...
View Article