C# Class Tests.FakeDbProvider

Inheritance: SqlFu.Providers.DbProvider
Afficher le fichier Open project: sapiens/SqlFu

Méthodes publiques

Méthode Description
AddReturnInsertValue ( string sqlValues, string identityColumn ) : string
FakeDbProvider ( ) : System
FakeDbProvider ( Func factory, string providerId ) : System
FormatQueryPagination ( string sql, Pagination page, ParametersManager pm ) : string
GetColumnType ( Type type ) : string
GetIdentityKeyword ( ) : string
IsDbBusy ( DbException ex ) : bool
IsUniqueViolation ( DbException ex, string keyName = "" ) : bool
ObjectExists ( DbException ex, string name = null ) : bool

Méthodes protégées

Méthode Description
GetEscapeIdentifierChars ( ) : EscapeIdentifierChars
InitTools ( ) : IDatabaseTools

Method Details

AddReturnInsertValue() public méthode

public AddReturnInsertValue ( string sqlValues, string identityColumn ) : string
sqlValues string
identityColumn string
Résultat string

FakeDbProvider() public méthode

public FakeDbProvider ( ) : System
Résultat System

FakeDbProvider() public méthode

public FakeDbProvider ( Func factory, string providerId ) : System
factory Func
providerId string
Résultat System

FormatQueryPagination() public méthode

public FormatQueryPagination ( string sql, Pagination page, ParametersManager pm ) : string
sql string
page Pagination
pm SqlFu.Builders.ParametersManager
Résultat string

GetColumnType() public méthode

public GetColumnType ( Type type ) : string
type System.Type
Résultat string

GetEscapeIdentifierChars() protected méthode

protected GetEscapeIdentifierChars ( ) : EscapeIdentifierChars
Résultat SqlFu.Providers.EscapeIdentifierChars

GetIdentityKeyword() public méthode

public GetIdentityKeyword ( ) : string
Résultat string

InitTools() protected méthode

protected InitTools ( ) : IDatabaseTools
Résultat IDatabaseTools

IsDbBusy() public méthode

public IsDbBusy ( DbException ex ) : bool
ex System.Data.Common.DbException
Résultat bool

IsUniqueViolation() public méthode

public IsUniqueViolation ( DbException ex, string keyName = "" ) : bool
ex System.Data.Common.DbException
keyName string
Résultat bool

ObjectExists() public méthode

public ObjectExists ( DbException ex, string name = null ) : bool
ex System.Data.Common.DbException
name string
Résultat bool