Castle Activerecord. Two collections of the same class.

Posted by George Polevoy on Stack Overflow See other posts from Stack Overflow or by George Polevoy
Published on 2010-03-22T11:58:47Z Indexed on 2010/03/22 12:01 UTC
Read the original article Hit count: 238

Filed under:

I want to have two collections of same class items in Activerecord. How to map this?

class Project
{
 [HasMany]
 IList<Resource> Resources { get; set; }

 [HasMany]
 IList<Resource> DepartmentResources { get; set; }
}

public class Resource
{
 [BelongsTo ???
}

© Stack Overflow or respective owner

Related posts about castle-activerecord