fix #4722 - support PrincipalSchema when creating foreign keys (credit @Hypnodude)
This commit is contained in:
@ -16,6 +16,16 @@ namespace Oqtane.Migrations
|
||||
OnDeleteAction = onDeleteAction;
|
||||
}
|
||||
|
||||
public ForeignKey(string name, Expression<Func<TEntityBuilder, object>> column, string principalTable, string principalColumn, string principalSchema, ReferentialAction onDeleteAction)
|
||||
{
|
||||
Name = name;
|
||||
Column = column;
|
||||
PrincipalTable = principalTable;
|
||||
PrincipalColumn = principalColumn;
|
||||
PrincipalSchema = principalSchema;
|
||||
OnDeleteAction = onDeleteAction;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public Expression<Func<TEntityBuilder, object>> Column { get;}
|
||||
@ -34,6 +44,8 @@ namespace Oqtane.Migrations
|
||||
|
||||
public string PrincipalColumn { get; }
|
||||
|
||||
public string PrincipalSchema { get; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user