项目重命名
This commit is contained in:
48
MesETL.App/Options/DataInputOptions.cs
Normal file
48
MesETL.App/Options/DataInputOptions.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using ConsoleApp2.HostedServices;
|
||||
|
||||
namespace ConsoleApp2.Options
|
||||
{
|
||||
public class DataInputOptions
|
||||
{
|
||||
public string? InputDir { get; set; }
|
||||
|
||||
#region CSV
|
||||
|
||||
/// <summary>
|
||||
/// 字符串的包围符号,默认为双引号"
|
||||
/// </summary>
|
||||
public char QuoteChar { get; set; } = '"';
|
||||
|
||||
/// <summary>
|
||||
/// 每个字段的分割符,默认逗号,
|
||||
/// </summary>
|
||||
public string Delimiter { get; set; } = ",";
|
||||
|
||||
#endregion
|
||||
|
||||
#region Mock
|
||||
|
||||
public bool UseMock { get; set; }
|
||||
|
||||
public double MockCountMultiplier { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Table -> Mock Count 暂时为手动配置
|
||||
/// </summary>
|
||||
public Dictionary<string, TableMockConfig>? TableMockConfig { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region ManualSet
|
||||
|
||||
public string[]? TableOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 配置如何从文件名转换为表名和表头
|
||||
/// </summary>
|
||||
public Func<string, FileInputInfo?>? FileInputMetaBuilder { get; set; } //TODO: 抽离
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user