Class CsvConnectionStringBuilder
Represents the CsvDataConnection connection string builder.
Inheritance
Namespace: FastReport.Data
Assembly: FastReport.Base.dll
Syntax
public class CsvConnectionStringBuilder : DbConnectionStringBuilder
Remarks
Use this class to parse connection string returned by the CsvDataConnection class.
Constructors
CsvConnectionStringBuilder()
Initializes a new instance of the CsvConnectionStringBuilder class.
Declaration
public CsvConnectionStringBuilder()
CsvConnectionStringBuilder(String)
Initializes a new instance of the CsvConnectionStringBuilder class with a specified connection string.
Declaration
public CsvConnectionStringBuilder(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
Properties
Codepage
Gets or sets the codepage of .csv file.
Declaration
public int Codepage { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ConvertFieldTypes
Gets or sets the value indicating that field types should be converted.
Declaration
public bool ConvertFieldTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CsvFile
Gets or sets the path to .csv file.
Declaration
public string CsvFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CurrencyFormat
Gets or sets locale name used to auto-convert currency fields, e.g. "en-US".
Declaration
public string CurrencyFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DateTimeFormat
Gets or sets locale name used to auto-convert datetime fields, e.g. "en-US".
Declaration
public string DateTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FieldNamesInFirstString
Gets or sets the value indicating that field names should be loaded from the first string of the file.
Declaration
public bool FieldNamesInFirstString { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NumberFormat
Gets or sets locale name used to auto-convert numeric fields, e.g. "en-US".
Declaration
public string NumberFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RemoveQuotationMarks
Gets or sets the value indicating that quotation marks should be removed.
Declaration
public bool RemoveQuotationMarks { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Separator
Gets or sets the separator.
Declaration
public string Separator { get; set; }
Property Value
Type | Description |
---|---|
System.String |