修改
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user