CyberEye.Orm.Lib
3.0.34
dotnet add package CyberEye.Orm.Lib --version 3.0.34
NuGet\Install-Package CyberEye.Orm.Lib -Version 3.0.34
<PackageReference Include="CyberEye.Orm.Lib" Version="3.0.34" />
<PackageVersion Include="CyberEye.Orm.Lib" Version="3.0.34" />
<PackageReference Include="CyberEye.Orm.Lib" />
paket add CyberEye.Orm.Lib --version 3.0.34
#r "nuget: CyberEye.Orm.Lib, 3.0.34"
#:package CyberEye.Orm.Lib@3.0.34
#addin nuget:?package=CyberEye.Orm.Lib&version=3.0.34
#tool nuget:?package=CyberEye.Orm.Lib&version=3.0.34
CyberEye.Orm.Lib
Tầng truy cập CSDL quan hệ: repository kết hợp EF Core cho ghi và Dapper cho đọc, base service, helper migration và truy vấn.
Target framework: net8.0.
Cài đặt
dotnet add package CyberEye.Orm.Lib
Cần cấu hình NuGet feed của dự án và chọn phiên bản tương thích với các package CyberEye khác trong host.
Bắt đầu với repository
using Ce.Orm.Lib.Base.Implementations;
using Ce.Orm.Lib.ConnectionFactory;
public class ProductRepository : BaseRepository<Product, int>, IProductRepository
{
public ProductRepository(AppDbContext dbContext, IDbConnectionFactory connections)
: base(dbContext, connections) { }
}
Đây là fragment: host phải có Product, AppDbContext và IProductRepository kế thừa IBaseRepository<Product, int>; đồng thời đăng ký DbContext, connection factory và repository.
Nếu host dùng Ce.Common.Lib, có thể quét assembly bằng services.AddOrmBaseRepositories(typeof(ProductRepository).Assembly) trong namespace Ce.Common.Lib.StartupExtensions. Đây không phải extension generic nhận DbContext và không thuộc riêng package ORM.
Những điều cần biết
AddAsynctrả khóa TKey;AddEntityAsynctrả entity.ConnectionStrings:ProviderTypechọn provider; connection strings phải khớp kiểu host và mô hình master/replica.- Giao dịch phải được mở và sử dụng đúng phạm vi; nhiều repository không tự tạo thành một transaction.
- Parameter hóa giá trị SQL; không nhận tên bảng hoặc SQL tùy ý từ client.
- Migration helpers nằm trong
Ce.Orm.Lib.Helpers.DbMigrationHelpers, không phải Ce.SharedSql.Lib.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. 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. |
-
net8.0
- CyberEye.CommonRdbms.Lib (>= 3.0.34)
- CyberEye.DataScope.Lib (>= 3.0.34)
- CyberEye.Interaction.Lib (>= 3.0.34)
- CyberEye.OidcClient.Lib (>= 3.0.34)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CyberEye.Orm.Lib:
| Package | Downloads |
|---|---|
|
CyberEye.Common.Lib
Package chứa các hàm tiện ích, các base class, abstract class |
|
|
CyberEye.Axe.Dto
Package chứa các model Dto cho dự án AXE |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.34 | 0 | 11/15/2026 |
| 3.0.33 | 0 | 11/15/2026 |
| 3.0.32 | 0 | 11/15/2026 |
| 3.0.31 | 38 | 11/15/2026 |
| 3.0.30 | 46 | 11/15/2026 |
| 3.0.29 | 53 | 11/13/2026 |
| 3.0.28 | 128 | 11/6/2026 |
| 3.0.27 | 148 | 9/17/2026 |
| 3.0.26 | 143 | 9/8/2026 |
| 3.0.25 | 175 | 8/22/2026 |
| 3.0.24 | 163 | 8/10/2026 |
| 3.0.23 | 145 | 8/9/2026 |
| 3.0.22 | 176 | 8/1/2026 |
| 3.0.21 | 151 | 7/28/2026 |
| 3.0.20 | 153 | 7/27/2026 |
| 3.0.19 | 155 | 7/27/2026 |
| 3.0.18 | 151 | 7/17/2026 |
| 3.0.17 | 163 | 7/13/2026 |
| 3.0.16 | 167 | 7/12/2026 |
| 3.0.15 | 162 | 7/10/2026 |