This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Im not sure if I'm using the ThroughAssociation correctly but I am getting an odd exception when binding to a GridView control. This is the property that I have aon my domain object public IList<GameUnit> Queue {
So the Many-ToMany association class is AccountGameUnit and my target is GameUnit. Everything works beautifully and the property correctly returns an IList<GameUnit>. In my aspx code behind, I bind the data to a GridView like this. this.queueGrid.DataSource = account.Queue; And in my aspx markup I have this as a column template <asp:TemplateField HeaderText="Title"> Everything looks fine except when I run the page I get this error
So I was thinking that the ThroughAssocation what enumerating the wrong collection but I changed the binding code to this IList<GameUnit> realUnits = new List<GameUnit>(); And everything works fine. so what the heck. Why would binding the grid to the ThroughAssociation directly cause it to enumerate through the AccountGameUnit association class. You dont even expose the association through the interface do you? Any ideas? |
|
|
Hi Jesse, This is a bug which I've now fixed internally. We will be dropping 1.0 next week but if it's a show stopper I can get you a nightly before then. Thanks for raising the issue. Cheers, Andrew. |
|