namespace: Serenity.Data.Mapping assembly: Serenity.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 |
- class InnerJoinAttribute
namespace: Serenity.Data.Mapping assembly: Serenity.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. |
- enum ServerType
- class InnerJoinAttribute
namespace: Serenity.Data.Mapping assembly: Serenity.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. |
- class InnerJoinAttribute
namespace: Serenity.Data.Mapping assembly: Serenity.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. |
- enum ServerType
- class InnerJoinAttribute