Skip to content

Commit

Permalink
Merge pull request #135 from rsr-maersk/release/v6/6.0.3
Browse files Browse the repository at this point in the history
SPIKE! Allow GetViewName for table name
  • Loading branch information
artiomchi authored Nov 24, 2024
2 parents c5191a7 + 151f462 commit 082c8ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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(Resources.FormatCouldNotGetTableNameForEntityType(entityType?.Name));
return GetSchema(entityType) + EscapeName(tableName);
}
Expand Down

0 comments on commit 082c8ac

Please sign in to comment.