Keisoft.Chat.Repositorys 9.0.2

dotnet add package Keisoft.Chat.Repositorys --version 9.0.2
                    
NuGet\Install-Package Keisoft.Chat.Repositorys -Version 9.0.2
                    
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="Keisoft.Chat.Repositorys" Version="9.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Keisoft.Chat.Repositorys" Version="9.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Keisoft.Chat.Repositorys" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Keisoft.Chat.Repositorys --version 9.0.2
                    
#r "nuget: Keisoft.Chat.Repositorys, 9.0.2"
                    
#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.
#:package Keisoft.Chat.Repositorys@9.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Keisoft.Chat.Repositorys&version=9.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Keisoft.Chat.Repositorys&version=9.0.2
                    
Install as a Cake Tool

A Repository pattern implementation leveraging Entity Framework Core, tailored for the backend microservices architecture of a messaging platform.


// Inherits from the RepositoryBase class.
public class DemoRepository : RepositoryBase<DemoEntity>, IDemoRepository
{
    public DemoRepository(AppDbContext dbContext) : base(dbContext)
    {

    }
}

// Your business implementation class.
public class DemoService : IDemoService
{
    private readonly IDemoRepository _demoRepository;
    
	public DemoService(IDemoRepository demoRepository) 
    {
        _demoRepository = demoRepository;
    }
    
    // Usage example:
    public async Task Tests() 
    {
        // Counts all entities in the repository.
        var count1 = await _demoRepository.CountAsync();
        
        // Counts entities matching a specific condition.
        var count2 = await _demoRepository.CountAsync(a => a.Id == 1);
        
        // Inserts a single entity and returns the generated ID.
        var entity = await _demoRepository.InsertAsync(new DemoEntity { Name = "Demo" });
        
        // Inserts a collection of entities.
        await _demoRepository.InsertRangeAsync(new List<Certificate>
        {
            new Certificate { Name = "Demo" }
        });
        
        // Deletes a specific entity instance.
        await _demoRepository.DeleteAsync(entity);
        
        // Deletes entities matching a specific condition.
        await _demoRepository.DeleteAsync(a => a.Id == 1);
        
        // Updates specified fields of an entity.
        await _demoRepository.UpdateAsync(entity, a => new { a.Name, a.DateTime });
        
        // Finds a single entity matching the condition.
        var entitySingle = await _demoRepository.FindAsync(a => a.Id == 1);
        
        // Gets a list of entities matching the condition.
        var entityList = await _demoRepository.GetListAsync(a => a.Id == 1);
         
        // Gets a list ordered by descending based on specified criteria and a condition.
        var orderByEntityList = await _demoRepository.OrderByDescendingGetListAsync(a => new { a.Id }, a => a.Id == 1);

        // Executes raw SQL.
        var rowCount = await _demoRepository.RawAsync("UPDATE DemoEntity SET Name = @Name WHERE Id = @Id", new 
        {
            Name = "Demo", 
            Id = 1 
        });
    }
}
    
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Keisoft.Chat.Repositorys:

Package Downloads
Keisoft.Chat.Single.WebApi

A User Friends Service Web API library tailored for chat backends.

Keisoft.Chat.Group.WebApi

A Web API library for group services in chat application backends.

Keisoft.Chat.RiskControl.WebApi

A Web API library for risk control services in chat application backends.

Keisoft.Chat.Favorite.WebApi

Web API service library designed to manage user favorites within chat application backends.

Keisoft.Chat.Moment.WebApi

A Web API library for the Moments service in chat application backends.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.2 161 8/6/2026