This commit is contained in:
2024-01-12 16:50:37 +08:00
parent eab3695f53
commit 0984853c79
28 changed files with 1115 additions and 166 deletions

View File

@@ -1,4 +1,6 @@
namespace ConsoleApp2;
using System.ComponentModel.Design;
namespace ConsoleApp2;
public class DataRecord
@@ -33,9 +35,10 @@ public class DataRecord
public string TableName { get; }
public string? Database { get; set; }
public int CompanyID { get; set; }
public DataRecord(string[] fields, string tableName, string[] headers)
public DataRecord(string[] fields, string tableName, string[] headers, int companyID=0)
{
if (fields.Length != headers.Length)
throw new ArgumentException(
@@ -45,6 +48,7 @@ public class DataRecord
Fields = fields;
TableName = tableName;
Headers = headers;
CompanyID = companyID;
}
public string this[int index]