namespace ConsoleApp2.Options; public class DatabaseOutputOptions { /// /// 数据库连接字符串 /// public string? ConnectionString { get; set; } /// /// 输出服务的任务(Task)数 /// public int TaskCount { get; set; } /// /// 每个任务每次提交到数据库的记录数量(每N条构建一次SQL语句) /// public int FlushCount { get; set; } public int MaxAllowedPacket { get; set; } = 32*1024*1024; }