FlexReport for WinForms
DataSource クラス メンバ
フィールド  プロパティ  メソッド 


C1.Report.4.6.2 アセンブリ > C1.Report 名前空間 : DataSource クラス

DataSourceデータ型で公開されるメンバを以下の表に示します。

パブリック コンストラクタ
 名前解説
Public コンストラクタInitializes a new instance of the DataSource class.  
トップ
パブリック フィールド
 名前解説
Public フィールドDefines default IsolationLevel for transaction used to get report data.  
トップ
パブリック プロパティ
 名前解説
Public プロパティGets the CalculatedFieldCollection collection defining list of calculated fields for the data source.  
Public プロパティGets or sets the number of seconds to wait before the data connection times out (set to -1 to use the default value, usually 30s).  
Public プロパティGets or sets the connection string used to open a database.  
Public プロパティFor internal used.  
Public プロパティFor internal use.  
Public プロパティGets or sets the type of the data source. The data source type determines the syntaxes of connection string and query (record source). The default is Auto but it is recommended that you set this value to the specific type of the data source you are using, as automatic determining of the data source type may be rather slow.  
Public プロパティFor internal use. Getting this property initially may take some time as it accesses the data source. After the first access the value is cached. You may first call the FetchDataSourceInfo method to pre-fetch the value.  
Public プロパティGets or sets a value indicating whether values of parameters in resulting SQL query should be enclosed with delimiters, "#" for dates, "'" for strings, "()" for multivalue parameters. If this parameter is false when all parameters in RecordSource already should be enclosed. For example, EncloseParameterValues == true: RecordSource = "select * from customers where name = CustomerName"; actual SQL query will be: select * from customers where name = 'Some customer' EncloseParameterValues == false: RecordSource = "select * from customers where name = 'CustomerName'"; actual SQL query will be: select * from customers where name = 'Some customer'  
Public プロパティThe DbFactoryName string used to open a database.  
Public プロパティGets or sets the expression used to filter which data rows are included in the report.  
Public プロパティGets or sets the type of syntax used in the Filter.  
Public プロパティFor internal use. Gets a value indicating whether the data source info has been fetched already.  
Public プロパティGets or sets the isolation level for DbTransaction used to retrieve the report data.

The default is IsolationLevel.ReadCommitted.

 
Public プロパティGets or sets the maximum number of data rows to be included in the report (zero includes all rows).  
Public プロパティGets or sets the name of the object. C1.Report.ReportObjectから継承されます。
Public プロパティGets or sets a value indicating how parameter values are passed to the data engine.  
Public プロパティオーバーライドされます。 Gets the report that contains this DataSource.  
Public プロパティSets or gets the data source object that provides data to the report.  
Public プロパティGets or sets a string that specifies which table, stored procedure, or Sql command to use for retrieving the report data.  
Public プロパティGets or sets the type of the RecordSource (stored procedure, table, sql query etc.).  
Public プロパティGets the SortDefinitionCollection collection defining sort of the data source.  
Public プロパティGets or sets arbitrary data associated with the object. C1.Report.ReportObjectから継承されます。
トップ
パブリック メソッド
 名前解説
Public メソッドオーバーロードされます。 Assigns (copies) properties from another DataSource to the current object. The name of source object is not copied.  
Public メソッドFor internal used. Disposes underlying DataHandler.  
Public メソッドFetches the data source info, and caches it in DataSourceInfo property. If the data source info has already been cached, does nothing unless force is true. Note that this method may take a long time to complete, as it accesses the data source. Use this instead of simply accessing the DataSourceInfo property if you want to make sure that getting that property would be fast.  
Public メソッドReturns true if this DataSource used specified ReportParameter, i.e. this parameter used in the sql query, expression of CalculatedField etc etc.  
Public メソッドMarks the owner report as dirty so it will clear the internal cache and render again. C1.Report.ReportObjectから継承されます。
Public メソッドFor internal used. Builds the DataHandler object used to access data defined by this DataSource object. Method can throw an exception if data source can not be opened: invalid connection string etc.  
Public メソッドFor internal used. Parse the PARAMETERS clause from the query string intot the parameters collection.  
Public メソッドResets DataSourceInfo property to null so it will be reinitializated on next call.  
Public メソッドFor internal use. Sets value of Recordset property without firing OnPropertyChanged() event.  
Public メソッドReturns the name of the current data source.  
トップ
プロテクト メソッド
 名前解説
Protected メソッドオーバーライドされます。   
トップ
参照

参照

DataSource クラス
C1.Report 名前空間