Table of Contents

Interface IRepositoryFactory

Namespace
Biwen.QuickApi.UnitOfWork
Assembly
Biwen.QuickApi.dll

Defines the interfaces for IRepository<TEntity> interfaces.

public interface IRepositoryFactory
Extension Methods

Methods

GetRepository<TEntity>(bool)

Gets the specified repository for the TEntity.

IRepository<TEntity> GetRepository<TEntity>(bool hasCustomRepository = false) where TEntity : class

Parameters

hasCustomRepository bool

True if providing custom repository

Returns

IRepository<TEntity>

An instance of type inherited from IRepository<TEntity> interface.

Type Parameters

TEntity

The type of the entity.