Skip to content

Commit 12eafc8

Browse files
committed
chore(DefaultEntityRepository): drop obsolete constructor
1 parent 83f9118 commit 12eafc8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ public class DefaultEntityRepository<TEntity, TId>
3636
private readonly IJsonApiContext _jsonApiContext;
3737
private readonly IGenericProcessorFactory _genericProcessorFactory;
3838

39-
[Obsolete("DbContext is no longer directly injected into the ctor. Use JsonApiContext.GetDbContextResolver() instead")]
40-
public DefaultEntityRepository(
41-
DbContext context,
42-
ILoggerFactory loggerFactory,
43-
IJsonApiContext jsonApiContext)
44-
{
45-
_context = context;
46-
_dbSet = context.GetDbSet<TEntity>();
47-
_jsonApiContext = jsonApiContext;
48-
_logger = loggerFactory.CreateLogger<DefaultEntityRepository<TEntity, TId>>();
49-
_genericProcessorFactory = _jsonApiContext.GenericProcessorFactory;
50-
}
51-
5239
public DefaultEntityRepository(
5340
ILoggerFactory loggerFactory,
5441
IJsonApiContext jsonApiContext,

0 commit comments

Comments
 (0)