MES-ETL/ConsoleApp2/Options/DatabaseOutputOptions.cs

19 lines
542 B
C#
Raw Normal View History

2024-01-04 09:00:44 +08:00
namespace ConsoleApp2.Options;
public class DatabaseOutputOptions
{
/// <summary>
/// 数据库连接字符串
/// </summary>
public string? ConnectionString { get; set; }
/// <summary>
2024-01-12 16:50:37 +08:00
/// 输出服务的任务(Task)数
2024-01-04 09:00:44 +08:00
/// </summary>
2024-01-12 16:50:37 +08:00
public int TaskCount { get; set; }
2024-01-04 09:00:44 +08:00
/// <summary>
/// 每个任务每次提交到数据库的记录数量每N条构建一次SQL语句
/// </summary>
public int FlushCount { get; set; }
2024-01-12 16:50:37 +08:00
public int MaxAllowedPacket { get; set; } = 32*1024*1024;
2024-01-04 09:00:44 +08:00
}