This project is read-only.

Relation to Owner in a custom module part

Topics: General
Jan 12, 2012 at 10:26 AM


I'm creating a custom module named Project. Each user of the site can CRUD projects. I have a Project part which has a property of type IUser. I want to link that property to the Owner from Common. In my record the property is again of type IUser. What type of column should I use in the Migration? How do I tell that my Owner is actually the Owner from Common? Or do I attach the common part to my part somehow?

Jan 12, 2012 at 1:18 PM

Since Project is a part, you don't need a column there. You can just go project.As<CommonPart>().Owner.