C# Class Tiraggo.Interfaces.tgDataRequest

Exibir arquivo Open project: BrewDawg/Tiraggo Class Usage Examples

Public Properties

Property Type Description
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

Public Methods

Method Description
FireOnError ( tgEntitySavePacket packet, string error ) : void

Called by the DataProviders to invoke the OnError event handler

Method Details

FireOnError() public method

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
return void

Property Details

BulkSave public_oe property

public bool BulkSave
return bool

BulkSaveOptions public_oe property

public string[] BulkSaveOptions
return string[]

Caller public_oe property

public object Caller
return object

Catalog public_oe property

The name of the catalog, for instance, in SQL Server this could be "Northwind".
public string Catalog
return string

CollectionSavePacket public_oe property

Used when saving a collection
public List CollectionSavePacket
return List

Columns public_oe property

These are the columns from the generated Metadata class. These columns contain enough metadata to generate the dynamic sql.
public tgColumnMetadataCollection Columns
return tgColumnMetadataCollection

CommandTimeout public_oe property

Optional, the command timeout as defined in the web.config or app.config file
public int? CommandTimeout
return int?

ConnectionString public_oe property

The connection string to connect to the actual DBMS system
public string ConnectionString
return string

ContinueUpdateOnError public_oe property

This is used during the Saving of a collection, if true, exceptions do not prevent successful records from being saved.
public bool ContinueUpdateOnError
return bool

DataID public_oe property

Currently not used.
public Guid,System DataID
return System.Guid

DatabaseVersion public_oe property

This is optional and typically for SQL Server it is either 2000 or 2005.
public string DatabaseVersion
return string

DynamicQuery public_oe property

Automatically populated whenver you use the EntitySpaces dynamic query mechanism.
public tgDynamicQuerySerializable DynamicQuery
return tgDynamicQuerySerializable

EntitySavePacket public_oe property

Used when a single entity is being saved
public tgEntitySavePacket,Tiraggo.Interfaces EntitySavePacket
return tgEntitySavePacket

IgnoreComputedColumns public_oe property

Set to true by tgEntityCollection.SaveAndDiscard() so it doesn't bother returning indentity column values, timestamps, or other computed columns.
public bool IgnoreComputedColumns
return bool

ModifiedColumns public_oe property

A List of Lists, each nested list contains the modified columns for each DataRow contained in the DataTable
public List> ModifiedColumns
return List>

Parameters public_oe property

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
return tgParameters

Properties public_oe property

Transient data using during the SQL insert/update/delete process
public PropertyCollection,System.Data Properties
return System.Data.PropertyCollection

ProviderMetadata public_oe property

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
return tgProviderSpecificMetadata

QueryText public_oe property

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
return string

QueryType public_oe property

The form of the query itself, see tgQueryType
public tgQueryType QueryType
return tgQueryType

Schema public_oe property

The name of the Schema, for instance, in SQL Server this is typically "dbo".
public string Schema
return string

SelectedColumns public_oe property

public Dictionary SelectedColumns
return int>.Dictionary

SqlAccessType public_oe property

Whether to use Stored Procedures or Dynamic SQL
public tgSqlAccessType SqlAccessType
return tgSqlAccessType

Table public_oe property

The DataTable containing only the changed rows to commit
public DataTable,System.Data Table
return System.Data.DataTable