Hi there,
I have been playing around with LINQ2SQL for a bit now and started wondering about the Associations that one would make between two entity classes.
Let's say I have Table A and B in a SQL Database. There exits a 1-M relationship between A and B. The entity classes that represent Tables A and B are found in 2 different Projects (let us call the Project A (has entity class A) and Project B (has entity class B) in VS2010. B depends on A to do some work, but for obvious reasons, only B should have a reference to A.
When implementing the LINQ Associations, B must have EntityRef<A> and A [must(?)] have EntitySet<B>. But this will cause a circular dependancy!!! So would the correct thing to do be not to reference B from A at all? Is it really that necessary to have an EntitySet<B> in A?