CyberEye.SqlServerCdc.Lib
3.0.34
dotnet add package CyberEye.SqlServerCdc.Lib --version 3.0.34
NuGet\Install-Package CyberEye.SqlServerCdc.Lib -Version 3.0.34
<PackageReference Include="CyberEye.SqlServerCdc.Lib" Version="3.0.34" />
<PackageVersion Include="CyberEye.SqlServerCdc.Lib" Version="3.0.34" />
<PackageReference Include="CyberEye.SqlServerCdc.Lib" />
paket add CyberEye.SqlServerCdc.Lib --version 3.0.34
#r "nuget: CyberEye.SqlServerCdc.Lib, 3.0.34"
#:package CyberEye.SqlServerCdc.Lib@3.0.34
#addin nuget:?package=CyberEye.SqlServerCdc.Lib&version=3.0.34
#tool nuget:?package=CyberEye.SqlServerCdc.Lib&version=3.0.34
CyberEye.SqlServerCdc.Lib
Công cụ chuẩn bị và kiểm tra cấu hình CDC cho SQL Server. Đây là lớp quản trị điều kiện CDC, không phải dịch vụ chạy nền đọc và phát thay đổi.
Target framework: net8.0.
Cài đặt
dotnet add package CyberEye.SqlServerCdc.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.
API chính
Bật/tắt CDC ở database và bảng, kiểm tra capture instance. Không tự chụp snapshot hoặc publish sự kiện sang Kafka.
using Ce.SqlServerCdc.Lib.Implementations;
// Fragment: connectionString và databaseName do host cung cấp.
var client = new SqlServerCdcClient(connectionString);
bool enabled = await client.IsCdcDbEnabledAsync(databaseName);
Cách sử dụng
- Kiểm tra quyền tài khoản và điều kiện CDC của hệ quản trị.
- Dùng các phương thức kiểm tra trạng thái trước khi thay đổi cấu hình.
- Chỉ gọi enable/disable sau khi xác định đúng database, schema/bảng hoặc collection. Đây là thao tác quản trị có thể ảnh hưởng hệ thống đang chạy.
- Nếu cần đọc thay đổi và chuyển sang Kafka, cấu hình reader/connector riêng. Quản lý Kafka Connect thuộc
CyberEye.KafkaConnector.Lib.
Package không tự bind section SqlServerCdcConfig; truyền connection string vào constructor. Không lưu password thực trong source.
| 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.CommonConnector.Lib (>= 3.0.34)
NuGet packages
This package is not used by any NuGet packages.
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 | 37 | 11/15/2026 |
| 3.0.30 | 43 | 11/15/2026 |
| 3.0.29 | 49 | 11/13/2026 |
| 3.0.28 | 97 | 11/6/2026 |
| 3.0.27 | 128 | 9/17/2026 |
| 3.0.26 | 125 | 9/8/2026 |
| 3.0.25 | 119 | 8/22/2026 |
| 3.0.24 | 130 | 8/10/2026 |
| 3.0.23 | 117 | 8/9/2026 |
| 3.0.22 | 136 | 8/1/2026 |
| 3.0.21 | 123 | 7/28/2026 |
| 3.0.20 | 136 | 7/27/2026 |
| 3.0.19 | 126 | 7/27/2026 |
| 3.0.18 | 119 | 7/17/2026 |
| 3.0.17 | 126 | 7/13/2026 |
| 3.0.16 | 123 | 7/12/2026 |
| 3.0.15 | 125 | 7/10/2026 |