many:many relation on same object

Jun 7, 2010 at 11:26 AM
Edited Jun 7, 2010 at 11:27 AM


first of all, the component is really great!!

I have a question:

Is it also possible to create a Many:Many relation in the same object?

for example:

    public abstract class Project : DbObjectModel<Project>
        public abstract string Name { get; set; }
        [HasAndBelongsToMany(), AllowNull(), DbColumn("Related_Project")]
        public abstract IList<Project> RelatedProjects { get; set; }
When using the code above (with mysql connector) there is a "duplicate field" exception thrown for "Project_Id", after that is says that table "project-project" doesn't exist.

Is there a way in the current release 3.9 to get this working??


Jun 7, 2010 at 1:06 PM

I don't think it may work on release 3.9. Maybe the next release....

Jun 7, 2010 at 1:07 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.