Skip to content

Commit 618a5bf

Browse files
committed
Added base to interface names so consumers can extend if they need to
1 parent e311c70 commit 618a5bf

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

QueryKit.Repositories/BaseEntityReadRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace QueryKit.Repositories;
2323
/// </summary>
2424
/// <typeparam name="TEntity">Entity type.</typeparam>
2525
/// <typeparam name="TKey">Primary key type.</typeparam>
26-
public class BaseEntityReadRepository<TEntity, TKey> : IEntityReadRepository<TEntity, TKey> where TEntity : class, IEntity<TKey>
26+
public class BaseEntityReadRepository<TEntity, TKey> : IBaseEntityReadRepository<TEntity, TKey> where TEntity : class, IBaseEntity<TKey>
2727
{
2828
/// <summary>
2929
/// Connection factory used to open database connections.

QueryKit.Repositories/BaseEntityRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace QueryKit.Repositories;
1616
/// </summary>
1717
/// <typeparam name="TEntity">Entity type.</typeparam>
1818
/// <typeparam name="TKey">Primary key type.</typeparam>
19-
public class BaseEntityRepository<TEntity, TKey> : BaseEntityReadRepository<TEntity, TKey>, IEntityRepository<TEntity, TKey> where TEntity : class, IEntity<TKey>
19+
public class BaseEntityRepository<TEntity, TKey> : BaseEntityReadRepository<TEntity, TKey>, IBaseEntityRepository<TEntity, TKey> where TEntity : class, IBaseEntity<TKey>
2020
{
2121
private static readonly PropertyInfo? SoftDeleteProp =
2222
typeof(TEntity).GetProperties(BindingFlags.Public | BindingFlags.Instance)

QueryKit.Repositories/Interfaces/IEntity.cs renamed to QueryKit.Repositories/Interfaces/IBaseEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// An entity with a primary key.
55
/// </summary>
6-
public interface IEntity<TKey>
6+
public interface IBaseEntity<TKey>
77
{
88
/// <summary>
99
/// The primary key of the entity.

QueryKit.Repositories/Interfaces/IEntityReadRepository.cs renamed to QueryKit.Repositories/Interfaces/IBaseEntityReadRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace QueryKit.Repositories.Interfaces;
1010
/// <summary>
1111
/// A read-only repository interface for entities with a primary key.
1212
/// </summary>
13-
public interface IEntityReadRepository<TEntity, TKey> where TEntity : class, IEntity<TKey>
13+
public interface IBaseEntityReadRepository<TEntity, TKey> where TEntity : class, IBaseEntity<TKey>
1414
{
1515
/// <summary>
1616
/// Retrieves an entity by primary key.

QueryKit.Repositories/Interfaces/IEntityRepository.cs renamed to QueryKit.Repositories/Interfaces/IBaseEntityRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace QueryKit.Repositories.Interfaces;
66
/// <summary>
77
/// A repository interface for managing entities with CRUD operations.
88
/// </summary>
9-
public interface IEntityRepository<TEntity, TKey> : IEntityReadRepository<TEntity, TKey> where TEntity : class, IEntity<TKey>
9+
public interface IBaseEntityRepository<TEntity, TKey> : IBaseEntityReadRepository<TEntity, TKey> where TEntity : class, IBaseEntity<TKey>
1010
{
1111
/// <summary>
1212
/// Inserts a new entity and returns the inserted instance with its primary key populated.

0 commit comments

Comments
 (0)