I have a dilemma and was wondering if anyone could help out as it would be greatly appreciated. I have a table with a composite primary key. One or more of the columns used in the composite primary key also has a foreign key reference to another table. My active record mapping class is serializable and has a CompositeKey with GetHashCode and Equals overrides. That seems to take care of the composite primary key, but where I am stuck is with handling the BelongsTo or any other form of foreign key relationship such as HasAndBelongsToMany. I need to be able to use LINQ and query on the objects, with full read and write capabilities. Any guidance or code help would be greatly appreciated. If only I could restructure that database in a more orm friendly manner, but that is not an option in this situation.
Current Environment and Setup - C# - .NET 3.5 - Visual Studio - Castle ActiveRecord 2.1.2 (2010-01-31) -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
