﻿namespace MyCompany.MyProject.EntityFrameworkCore.Repositories
{
    /// <summary>
    /// Represents the base class for custom repositories of the application.
    /// This is a shortcut of <see cref="MyProjectRepositoryBase{TEntity,TPrimaryKey}"/> for <see cref="int"/> primary key.
    /// </summary>
    /// <typeparam name="TEntity">Entity type</typeparam>
    public abstract class MyProjectRepositoryBase<TEntity> : MyProjectRepositoryBase<TEntity, int>
        where TEntity : class, Dike.Core.Domain.Entities.IEntity<int>
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="MyProjectRepositoryBase{TEntity}"/> class.
        /// </summary>
        /// <param name="dbContextProvider">The database context provider.</param>
        protected MyProjectRepositoryBase(Dike.EntityFrameworkCore.IDbContextProvider<MyProjectDbContext> dbContextProvider)
            : base(dbContextProvider)
        {
        }

        #endregion Constructors
    }
}