New Post: Entity Framework calls AssemblyName.ReferenceMatchesDefinition...
@moozzyk: according to this bug report on Connect, the API never worked like it was documented: This is indeed a bug in the API. It has been in the product since it was introduced in 2.0 RTM. It never...
View ArticleNew Post: Entity Framework calls AssemblyName.ReferenceMatchesDefinition...
It would hardly seem to justify having a method if that is all it does. If the entity framework developers could take it out and replace it with a compare that seems like the best solution. The way...
View ArticleNew Post: Entity Framework calls AssemblyName.ReferenceMatchesDefinition...
Yes, I suspect the original intention of the API was to compare version, public keys etc. too, but as confirmed by the Connect bug it simply never behaved like that. They couldn't change the behavior...
View ArticleNew Post: ConventionTypeConfiguration vs ConventionTypeConfiguration
Hi, I'm wondering why doesn't the ConventionTypeConfiguration<T> class have the Property(string) or Property(PropertyInfo) methods, similar to the ConventionTypeConfiguration. This would make...
View ArticleNew Post: Required is Treated as ConcurrencyCheck
Hello, With Code First, when deleting an entity with a [Required] association, this association's value is also sent in the DELETE SQL statement, as if it were a [ConcurrencyCheck]: exec sp_executesql...
View ArticleNew Post: How can I retrieve the value passed to the .HasMaxLength() method...
@Lumirris The ability to inspect the configuration classes from the normal public surface is something that is intentionally not available. There are two reasons for this. First, creating a clear and...
View ArticleNew Post: TransactionScope and Added Entities
@diegomodolo DbContext does make use of the TransactionScope transaction. If SaveChanges is called and is successful, then the entities are moved into the Unchanged state and will not be inserted...
View ArticleNew Post: Entity Framework calls AssemblyName.ReferenceMatchesDefinition...
I created a work item for this.
View ArticleNew Post: Required is Treated as ConcurrencyCheck
@rjperes I suspect that what you are seeing here is due to the use of an "independent association" or IA. EF uses this type of association when the foreign key for the relationship is not mapped to a...
View ArticleNew Post: Required is Treated as ConcurrencyCheck
Hello, Arthur! Don't think so... I have a Project entity with a reference to a required Customer. The Customer side has a collection of Projects mapped. It's something else. But anyway what you are...
View ArticleNew Post: Required is Treated as ConcurrencyCheck
@rjperes, Arthur is correct. If you add an explicit CustomerId FK property to Project then we will no longer generate SQL with the FK condition. Cheers, Andrew.
View ArticleNew Post: Required is Treated as ConcurrencyCheck
@rjperes Can you post the code for your entities? This is not a bug as such, but rather the way independent associations are designed to work, which is based a lot on the modeling concepts inside EDM...
View ArticleNew Post: Required is Treated as ConcurrencyCheck
Arthur, Andrew, I can confirm that if I add a foreign key property (CustomerId) to the Project class, besides the reference property (Customer), it works, but it is only necessary if the Customer...
View ArticleNew Post: Required is Treated as ConcurrencyCheck
@rjperes, Just wanted to add that in EF6 you can customize the DML that gets generated via the new interception capabilities. In this particular case you could rewrite the update command tree to remove...
View ArticleNew Post: Required is Treated as ConcurrencyCheck
Yes, I am aware of that feature, definitely something that NHibernate doesn't have! It would be interesting, IMO, to understand what the problem with the engine is, and if it doesn't deserve a...
View ArticleNew Post: Why is EF so useless !?? (compared to Linq2SQL)
Maybe you could help addressing this issues. I suggest you open a topic for each feature you want on http://ef.mswish.net Comparing to LINQ 2 SQL, EF has a much larger scope, it´s more complex and hard...
View ArticleNew Post: ConventionTypeConfiguration vs ConventionTypeConfiguration
Hi, This is a problem in the Fluent API as well, and there are a couple of other ways to work around it. You could add a public expression to your class that exposes the property in a strongly typed...
View ArticleNew Post: Is EF6 rc2 coming out anytime soon?
We aren't planning on doing an RC2 at this point, we will RTM when Visual Studio 2013 does.
View ArticleNew Post: Interface usage in DBContext
Hi Javed, I have achieved this with EF 5.0. The solution is too complex to post. I can give a very high level description. The base class for the repository looks like...public class...
View Article