添加项目文件。
This commit is contained in:
20
Entities/Context/UnitOfWork/IRepositoryFactory.cs
Normal file
20
Entities/Context/UnitOfWork/IRepositoryFactory.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SharedDATA.Api
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the interfaces for <see cref="IRepository{TEntity}"/> interfaces.
|
||||
/// </summary>
|
||||
public interface IRepositoryFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the specified repository for the <typeparamref name="TEntity"/>.
|
||||
/// </summary>
|
||||
/// <param name="hasCustomRepository"><c>True</c> if providing custom repositry</param>
|
||||
/// <typeparam name="TEntity">The type of the entity.</typeparam>
|
||||
/// <returns>An instance of type inherited from <see cref="IRepository{TEntity}"/> interface.</returns>
|
||||
IRepository<TEntity> GetRepository<TEntity>(bool hasCustomRepository = false) where TEntity : class;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user