Skip to content

Commit e00b09b

Browse files
committed
Remove duplicate initialization of GenerateKeyOnAdd property.
1 parent 6ba8f48 commit e00b09b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

SharpRepository.EfRepository/EfRepositoryBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class EfRepositoryBase<T, TKey> : LinqRepositoryBase<T, TKey> where T : c
1818
internal EfRepositoryBase(DbContext dbContext, ICachingStrategy<T, TKey> cachingStrategy = null) : base(cachingStrategy)
1919
{
2020
if (dbContext == null) throw new ArgumentNullException("dbContext");
21-
GenerateKeyOnAdd = true;
2221
Initialize(dbContext);
2322
}
2423

SharpRepository.InMemoryRepository/InMemoryRepositoryBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace SharpRepository.InMemoryRepository
1414

1515
internal InMemoryRepositoryBase(ICachingStrategy<T, TKey> cachingStrategy = null) : base(cachingStrategy)
1616
{
17-
GenerateKeyOnAdd = true;
17+
1818
}
1919

2020
protected override IQueryable<T> BaseQuery(IFetchStrategy<T> fetchStrategy = null)

0 commit comments

Comments
 (0)