Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarey1590 committed Dec 18, 2024
1 parent d8f3a74 commit 5f90ffe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ChangeTrackingTableNameProvider<TEntityKey, TEntity, TEntityContext
where TEntityKey : struct
where TEntityContext : DbContext, IDbContext
{
private static readonly Type _entityType = typeof(TEntity);
private static readonly Type EntityType = typeof(TEntity);
private TableNameResult _result;

public TableNameResult GetTableName()
Expand All @@ -30,8 +30,8 @@ public TableNameResult GetTableName()

private TableNameResult GetTableName(DbContext context)
{
var entityType = context.Model.FindEntityType(_entityType) ??
throw new Exception($"Entity type {_entityType.FullName} not found in the model.");
var entityType = context.Model.FindEntityType(EntityType) ??
throw new Exception($"Entity type {EntityType.FullName} not found in the model.");

var tableName = entityType.GetTableName() + "_Changes";
var schema = entityType.GetSchema() ?? context.Model.GetDefaultSchema() ?? "dbo";
Expand Down

0 comments on commit 5f90ffe

Please sign in to comment.