New Post: Constructor with connection string in generated entity
@TheKirk The generated context class is a partial class which means that you can add any constructor you want in your own code without it ever being overridden by code generation. If you choose you...
View ArticleNew Post: Constructor with connection string in generated entity
You have to excuse my ignorance. I probably over looked the 'partial' keyword. Thank you the for fast reply.
View ArticleNew Post: Mapping to abstract class TPH can't use single FK for derived class
Thank for the reply... I understand the last mapping but at the Domain side i really need have two concrete type with relative navigation. I resolved using an Interface implemented by Abstract class...
View ArticleNew Post: CA1709 Code Analysis Errors
Further to my previous reply, I've noticed a couple of changes in the history of the Entity Framework:Commit 44bc6d15f6a3 titled 'Enabling FxCop', committed by AndrewPeters on Mar 30, 2012 removed some...
View ArticleNew Post: CA1709 Code Analysis Errors
@MichaelPoettge Given that the build works for the majority of people it would be good to determine what is different about your environment that is causing it to fail on your machine before adding...
View ArticleNew Post: Why is 'delete from collection' designed to be so hard?
This has bugged me for some time, and caused me to tear my hair out in frustration during debugging a few times. I have a collection e.g. PackageEdits on my Package. PackageEdit.PackageKey is a...
View ArticleNew Post: Why is 'delete from collection' designed to be so hard?
Hello Tilovell, Thank you for the great feedback. You are correct both on the fact that EF differentiates between removing an entity from a collection and deleting the entity itself, and on the fact...
View ArticleNew Post: Custom collection support broken in EF6 beta1
I have existing code that assigns a collection of entities to a custom collection. Something like this: MyCollection : List<MyDetailObject> and class MyMasterObject { public virtual MyCollection...
View ArticleNew Post: Custom collection support broken in EF6 beta1
@sgifford Thanks for reporting this! I have created the following work item for it: https://entityframework.codeplex.com/workitem/1566 The workaround is to set the navigation property in the entity...
View ArticleNew Post: Custom collection support broken in EF6 beta1
@sgifford I have checked in a fix. This should be in tonight's nightly build and and in the EF6 RTM. Unfortunately it is too late for the fix to be included in the upcoming RC release. Thanks, Arthur
View ArticleNew Post: Build error on UnitTest.dll
HI I get the same problem. Can you tell me how to solve? Thanks
View ArticleNew Post: Build error on UnitTest.dll
Have you followed steps from Getting and Building Code section from https://entityframework.codeplex.com/documentation? Step 5 contains instructions on disabling strong name verification for EF...
View ArticleNew Post: InvalidCastException when converting EF4 provider to work as an EF6...
I never got acknowledgment from the email that I sent so I'll assume that it got filed as junk mail. Here is a link to a sample project that you can use to test this issue. Note: You'll need to have...
View ArticleNew Post: InvalidCastException when converting EF4 provider to work as an EF6...
Hi Tom, Thanks! Message received. We are currently working on a fix and we will try to validate that it solves the problem. Otherwise we will let you know when the fix is available. Diego
View ArticleNew Post: AttributeConfigurationConvention dropped in EF6-rc1?
Hi, previously I have used AttributeConfigurationConvention to create unicode attribute convention:public class IsUnicodeAttributeConvention : AttributeConfigurationConvention<PropertyInfo,...
View ArticleNew Post: AttributeConfigurationConvention dropped in EF6-rc1?
is public class IsUnicodeAttributeConvention : PrimitivePropertyAttributeConfigurationConvention<IsUnicodeAttribute> { public override void Apply(ConventionPrimitivePropertyConfiguration...
View ArticleNew Post: Add a "MigratesIn(typeof(DbContext))" attribute?
Hi, I have the following situation: Base project which has a BaseDbContext containing all my default entities and I load plugins who bring their own DBContext like PluginDbContext. I use EF 6...
View ArticleNew Post: update/insert/delete on views with EF6?
Hello, since LightSwitch is released, I would like to migrate my Access-Application to it. But it is not possible to make update/insert/delete-operations on views with the EF. There are a lot of posts...
View ArticleNew Post: is the source code for ef 5 migrate.exe available?
I am troubleshooting an error that only occurs on our azure deployment, we cannot replicate locally and I would like to modify the error handling to be more explicit.. is the source for that...
View ArticleNew Post: is the source code for ef 5 migrate.exe available?
This changeset should be pretty close: https://entityframework.codeplex.com/SourceControl/changeset/1dc675f86d6c22a9f59b1085e07c08bb7c5063c2
View Article