Skip to content

Commit

Permalink
Allow GetViewName for table name
Browse files Browse the repository at this point in the history
  • Loading branch information
rsr-maersk committed Nov 17, 2022
1 parent 822e9ba commit 7232cbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public abstract string GenerateCommand(string tableName, ICollection<ICollection
/// <returns>The fully qualified and escaped table reference</returns>
protected virtual string GetTableName(IEntityType entityType)
{
var tableName = entityType.GetTableName()
var tableName = entityType.GetTableName() ?? entityType.GetViewName()
?? throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, Resources.CouldNotGetTableNameForEntityType, entityType?.Name));
return GetSchema(entityType) + EscapeName(tableName);
}
Expand Down

0 comments on commit 7232cbb

Please sign in to comment.