C# Class Tiraggo.SqlClientProvider.Shared

Mostra file Open project: BrewDawg/Tiraggo

Public Methods

Method Description
AddParameters ( SqlCommand cmd, tgDataRequest request ) : void
BuildDynamicDeleteCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
BuildDynamicInsertCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
BuildDynamicUpdateCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
BuildStoredProcDeleteCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
BuildStoredProcInsertCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
BuildStoredProcUpdateCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
CheckForConcurrencyException ( SqlException ex ) : tgConcurrencyException
CreateFullName ( tgDataRequest request ) : string
CreateFullName ( tgDataRequest request, tgDynamicQuerySerializable query ) : string
CreateFullSPName ( tgDataRequest request, string spName ) : string
GatherReturnParameters ( SqlCommand cmd, tgDataRequest request, tgDataResponse response ) : void
PopulateStoredProcParameters ( SqlCommand cmd, tgDataRequest request, tgEntitySavePacket packet ) : void

Private Methods

Method Description
CloneParameter ( SqlParameter p ) : SqlParameter
CreateInsertSQLSnippet ( string colName, SqlParameter p, string &into, string &values, string &comma ) : void

Method Details

AddParameters() public static method

public static AddParameters ( SqlCommand cmd, tgDataRequest request ) : void
cmd System.Data.SqlClient.SqlCommand
request Tiraggo.Interfaces.tgDataRequest
return void

BuildDynamicDeleteCommand() public static method

public static BuildDynamicDeleteCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return System.Data.SqlClient.SqlCommand

BuildDynamicInsertCommand() public static method

public static BuildDynamicInsertCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return System.Data.SqlClient.SqlCommand

BuildDynamicUpdateCommand() public static method

public static BuildDynamicUpdateCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return System.Data.SqlClient.SqlCommand

BuildStoredProcDeleteCommand() public static method

public static BuildStoredProcDeleteCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return System.Data.SqlClient.SqlCommand

BuildStoredProcInsertCommand() public static method

public static BuildStoredProcInsertCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return System.Data.SqlClient.SqlCommand

BuildStoredProcUpdateCommand() public static method

public static BuildStoredProcUpdateCommand ( tgDataRequest request, tgEntitySavePacket packet ) : SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return System.Data.SqlClient.SqlCommand

CheckForConcurrencyException() public static method

public static CheckForConcurrencyException ( SqlException ex ) : tgConcurrencyException
ex System.Data.SqlClient.SqlException
return tgConcurrencyException

CreateFullName() public static method

public static CreateFullName ( tgDataRequest request ) : string
request Tiraggo.Interfaces.tgDataRequest
return string

CreateFullName() public static method

public static CreateFullName ( tgDataRequest request, tgDynamicQuerySerializable query ) : string
request Tiraggo.Interfaces.tgDataRequest
query tgDynamicQuerySerializable
return string

CreateFullSPName() public static method

public static CreateFullSPName ( tgDataRequest request, string spName ) : string
request Tiraggo.Interfaces.tgDataRequest
spName string
return string

GatherReturnParameters() public static method

public static GatherReturnParameters ( SqlCommand cmd, tgDataRequest request, tgDataResponse response ) : void
cmd System.Data.SqlClient.SqlCommand
request Tiraggo.Interfaces.tgDataRequest
response Tiraggo.Interfaces.tgDataResponse
return void

PopulateStoredProcParameters() public static method

public static PopulateStoredProcParameters ( SqlCommand cmd, tgDataRequest request, tgEntitySavePacket packet ) : void
cmd System.Data.SqlClient.SqlCommand
request Tiraggo.Interfaces.tgDataRequest
packet Tiraggo.Interfaces.tgEntitySavePacket
return void