YITC.DotNetCore.Repositories 16.30.0.4

dotnet add package YITC.DotNetCore.Repositories --version 16.30.0.4
NuGet\Install-Package YITC.DotNetCore.Repositories -Version 16.30.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YITC.DotNetCore.Repositories" Version="16.30.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YITC.DotNetCore.Repositories --version 16.30.0.4
#r "nuget: YITC.DotNetCore.Repositories, 16.30.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install YITC.DotNetCore.Repositories as a Cake Addin
#addin nuget:?package=YITC.DotNetCore.Repositories&version=16.30.0.4

// Install YITC.DotNetCore.Repositories as a Cake Tool
#tool nuget:?package=YITC.DotNetCore.Repositories&version=16.30.0.4

DotNetCore.Repositories

Repository

ICommandRepository

public interface ICommandRepository<T> where T : class
{
    void Add(T item);

    Task AddAsync(T item);

    void AddRange(IEnumerable<T> items);

    Task AddRangeAsync(IEnumerable<T> items);

    void Delete(object key);

    void Delete(Expression<Func<T, bool>> where);

    Task DeleteAsync(object key);

    Task DeleteAsync(Expression<Func<T, bool>> where);

    void Update(T item);

    Task UpdateAsync(T item);

    void UpdatePartial(object item);

    Task UpdatePartialAsync(object item);

    void UpdateRange(IEnumerable<T> items);

    Task UpdateRangeAsync(IEnumerable<T> items);
}

IQueryRepository

public interface IQueryRepository<T> where T : class
{
    IQueryable<T> Queryable { get; }

    bool Any();

    bool Any(Expression<Func<T, bool>> where);

    Task<bool> AnyAsync();

    Task<bool> AnyAsync(Expression<Func<T, bool>> where);

    long Count();

    long Count(Expression<Func<T, bool>> where);

    Task<long> CountAsync();

    Task<long> CountAsync(Expression<Func<T, bool>> where);

    T Get(object key);

    Task<T> GetAsync(object key);

    IEnumerable<T> List();

    Task<IEnumerable<T>> ListAsync();
}

IRepository

public interface IRepository<T> : ICommandRepository<T>, IQueryRepository<T> where T : class { }

Repository

public abstract class Repository<T> : IRepository<T> where T : class
{
    protected Repository(ICommandRepository<T> commandRepository, IQueryRepository<T> queryRepository) { }

    public IQueryable<T> Queryable { get; };

    public void Add(T item) { }

    public Task AddAsync(T item) { }

    public void AddRange(IEnumerable<T> items) { }

    public Task AddRangeAsync(IEnumerable<T> items) { }

    public bool Any() { }

    public bool Any(Expression<Func<T, bool>> where) { }

    public Task<bool> AnyAsync() { }

    public Task<bool> AnyAsync(Expression<Func<T, bool>> where) { }

    public long Count() { }

    public long Count(Expression<Func<T, bool>> where) { }

    public Task<long> CountAsync() { }

    public Task<long> CountAsync(Expression<Func<T, bool>> where) { }

    public void Delete(object key) { }

    public void Delete(Expression<Func<T, bool>> where) { }

    public Task DeleteAsync(object key) { }

    public Task DeleteAsync(Expression<Func<T, bool>> where) { }

    public T Get(object key) { }

    public Task<T> GetAsync(object key) { }

    public IEnumerable<T> List() { }

    public Task<IEnumerable<T>> ListAsync() { }

    public void Update(T item) { }

    public Task UpdateAsync(T item) { }

    public void UpdatePartial(object item) { }

    public Task UpdatePartialAsync(object item) { }

    public void UpdateRange(IEnumerable<T> items) { }

    public Task UpdateRangeAsync(IEnumerable<T> items) { }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on YITC.DotNetCore.Repositories:

Package Downloads
YITC.DotNetCore.EntityFrameworkCore

DotNetCore.EntityFrameworkCore forked by YITC

YITC.DotNetCore.MongoDB

DotNetCore.MongoDB forked by YITC

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
16.30.0.4 730 4/15/2022
16.26.0.3 609 3/17/2022
16.26.0.2-yitc 167 3/16/2022
16.26.0 592 3/16/2022
16.26.0-yitc 165 3/16/2022