C# Класс Tiraggo.Interfaces.tgDataRequest

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BulkSave bool
BulkSaveOptions string[]
Caller object
Catalog string
CollectionSavePacket List
Columns tgColumnMetadataCollection
CommandTimeout int?
ConnectionString string
ContinueUpdateOnError bool
DataID System.Guid
DatabaseVersion string
DynamicQuery tgDynamicQuerySerializable
EntitySavePacket tgEntitySavePacket
IgnoreComputedColumns bool
ModifiedColumns List>
Parameters tgParameters
Properties System.Data.PropertyCollection
ProviderMetadata tgProviderSpecificMetadata
QueryText string
QueryType tgQueryType
Schema string
SelectedColumns int>.Dictionary
SqlAccessType tgSqlAccessType
Table System.Data.DataTable

Открытые методы

Метод Описание
FireOnError ( tgEntitySavePacket packet, string error ) : void

Called by the DataProviders to invoke the OnError event handler

Описание методов

FireOnError() публичный Метод

Called by the DataProviders to invoke the OnError event handler
public FireOnError ( tgEntitySavePacket packet, string error ) : void
packet tgEntitySavePacket The esEntityPacket in error
error string
Результат void

Описание свойств

BulkSave публичное свойство

public bool BulkSave
Результат bool

BulkSaveOptions публичное свойство

public string[] BulkSaveOptions
Результат string[]

Caller публичное свойство

public object Caller
Результат object

Catalog публичное свойство

The name of the catalog, for instance, in SQL Server this could be "Northwind".
public string Catalog
Результат string

CollectionSavePacket публичное свойство

Used when saving a collection
public List CollectionSavePacket
Результат List

Columns публичное свойство

These are the columns from the generated Metadata class. These columns contain enough metadata to generate the dynamic sql.
public tgColumnMetadataCollection Columns
Результат tgColumnMetadataCollection

CommandTimeout публичное свойство

Optional, the command timeout as defined in the web.config or app.config file
public int? CommandTimeout
Результат int?

ConnectionString публичное свойство

The connection string to connect to the actual DBMS system
public string ConnectionString
Результат string

ContinueUpdateOnError публичное свойство

This is used during the Saving of a collection, if true, exceptions do not prevent successful records from being saved.
public bool ContinueUpdateOnError
Результат bool

DataID публичное свойство

Currently not used.
public Guid,System DataID
Результат System.Guid

DatabaseVersion публичное свойство

This is optional and typically for SQL Server it is either 2000 or 2005.
public string DatabaseVersion
Результат string

DynamicQuery публичное свойство

Automatically populated whenver you use the EntitySpaces dynamic query mechanism.
public tgDynamicQuerySerializable DynamicQuery
Результат tgDynamicQuerySerializable

EntitySavePacket публичное свойство

Used when a single entity is being saved
public tgEntitySavePacket,Tiraggo.Interfaces EntitySavePacket
Результат tgEntitySavePacket

IgnoreComputedColumns публичное свойство

Set to true by tgEntityCollection.SaveAndDiscard() so it doesn't bother returning indentity column values, timestamps, or other computed columns.
public bool IgnoreComputedColumns
Результат bool

ModifiedColumns публичное свойство

A List of Lists, each nested list contains the modified columns for each DataRow contained in the DataTable
public List> ModifiedColumns
Результат List>

Parameters публичное свойство

The parameters if any required to carry out the command. Remember, do not tack on decorators such as @ or ? on the front of your parameters, the EntitySpaces DataProviders do that for you so you can write provider independent queries.
public tgParameters,Tiraggo.Interfaces Parameters
Результат tgParameters

Properties публичное свойство

Transient data using during the SQL insert/update/delete process
public PropertyCollection,System.Data Properties
Результат System.Data.PropertyCollection

ProviderMetadata публичное свойство

This contains metadata that may be specific to an EntitySpaces DataProvider. The data in this property is driven by the "providerMetadataKey" in the config file. This allows stored procedure names, for instance, to have different names on different databases and yet the esEntity and tgEntityCollection objects are oblivious to that fact.
public tgProviderSpecificMetadata,Tiraggo.Interfaces ProviderMetadata
Результат tgProviderSpecificMetadata

QueryText публичное свойство

Depending on what the value of tgQueryType is, this could be the actual name of a stored procedure, DBMS function, raw text, or whatever else is possible.
public string QueryText
Результат string

QueryType публичное свойство

The form of the query itself, see tgQueryType
public tgQueryType QueryType
Результат tgQueryType

Schema публичное свойство

The name of the Schema, for instance, in SQL Server this is typically "dbo".
public string Schema
Результат string

SelectedColumns публичное свойство

public Dictionary SelectedColumns
Результат int>.Dictionary

SqlAccessType публичное свойство

Whether to use Stored Procedures or Dynamic SQL
public tgSqlAccessType SqlAccessType
Результат tgSqlAccessType

Table публичное свойство

The DataTable containing only the changed rows to commit
public DataTable,System.Data Table
Результат System.Data.DataTable