C# Class Tiraggo.Interfaces.tgDataRequest

Show file 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 property

public bool BulkSave
return bool

BulkSaveOptions public property

public string[] BulkSaveOptions
return string[]

Caller public property

public object Caller
return object

Catalog public property

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

CollectionSavePacket public property

Used when saving a collection
public List CollectionSavePacket
return List

Columns public 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 property

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

ConnectionString public property

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

ContinueUpdateOnError public 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 property

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

DatabaseVersion public property

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

DynamicQuery public property

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

EntitySavePacket public property

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

IgnoreComputedColumns public 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 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 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 property

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

ProviderMetadata public 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 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 property

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

Schema public property

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

SelectedColumns public property

public Dictionary SelectedColumns
return int>.Dictionary

SqlAccessType public property

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

Table public property

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