InnerJoinAttribute constructor (1 of 4)

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Adds a inner join on foreign key. Use this version only on properties with ForeignKey attribute.

public InnerJoinAttribute(string alias)
parameter description
alias Foreign join alias

See Also


InnerJoinAttribute constructor (2 of 4)

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Adds a inner join on foreign key. Use this version only on properties with ForeignKey attribute.

public InnerJoinAttribute(string alias, params ServerType[] serverTypes)
parameter description
alias Foreign join alias
serverTypes Dialects like MySql, Sqlite.

See Also


InnerJoinAttribute constructor (3 of 4)

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Adds a inner join

public InnerJoinAttribute(string alias, string toTable, string onCriteria)
parameter description
alias Join alias
toTable Join table
onCriteria If the attribute is used on a property, this parameter is a field name, if used on a class, this parameter is the ON criteria of the inner join statement.

See Also


InnerJoinAttribute constructor (4 of 4)

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Adds a inner join

public InnerJoinAttribute(string alias, string toTable, string onCriteria, 
    params ServerType[] serverTypes)
parameter description
alias Join alias
toTable Join table
onCriteria If the attribute is used on a property, this parameter is a field name, if used on a class, this parameter is the ON criteria of the inner join statement.
serverTypes Dialects like MySql, Sqlite.

See Also