Skip to content

Reference with two fields #712

@askrinnik

Description

@askrinnik

Hello,
I have two tables with a reference by two fields. I put the following attribute to my reference property:

[Reference(ReferenceType.OneToOne, ColumnName = "col1,col2", ReferenceMemberName = "col1,col2")]
public Invoice Invoice { get; set; } = new();

But it doesn't work
I found out that the ComplexSqlBuilder.GetJoinExpressions() supports only one field in a ColumnName and ReferenceMemberName
Is it possible to add reference support with more than one field?

Or is there another solution for my scenario?

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions