This question is locked. New answers and comments are not allowed.
I'm in the process of converting a project over from another ORM to OpenAccess. The project is a WCF RIA Silverlight app that connects to a database that uses several join tables.
The problem, that I'm running into, is how to expose properties that are related via join tables. I've attached an image that shows two tables that are associated in the database via a join table.
I found documentation about the JoinTableAssociationAttribute but haven't been able to use it to expose a ProcessStandards property in my class.
I apologize if this is a simple problem, but so far I've been unable to figure it out browsing through the forums or documentation. Thanks for the help.
Will
The problem, that I'm running into, is how to expose properties that are related via join tables. I've attached an image that shows two tables that are associated in the database via a join table.
I found documentation about the JoinTableAssociationAttribute but haven't been able to use it to expose a ProcessStandards property in my class.
private IList<
ProcessStandard
> processStandards = new List<
ProcessStandard
>();
[JoinTableAssociation(TableName = "LessonProcessStandards", OwnerColumns = "ID", TargetColumns = "PSID")]
public virtual IList<
ProcessStandard
> ProcessStandards
{
get
{
return this.processStandards;
}
}
I apologize if this is a simple problem, but so far I've been unable to figure it out browsing through the forums or documentation. Thanks for the help.
Will