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
<PackageReference Include="Keisoft.Chat.Repositorys" Version="9.0.2" />
<PackageVersion Include="Keisoft.Chat.Repositorys" Version="9.0.2" />
<PackageReference Include="Keisoft.Chat.Repositorys" />
paket add Keisoft.Chat.Repositorys --version 9.0.2
#r "nuget: Keisoft.Chat.Repositorys, 9.0.2"
#:package Keisoft.Chat.Repositorys@9.0.2
#addin nuget:?package=Keisoft.Chat.Repositorys&version=9.0.2
#tool nuget:?package=Keisoft.Chat.Repositorys&version=9.0.2
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 | Versions 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. |
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.15)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.15)
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 |