View Source
Interface ISqlContext
Specifies the Sql context.
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ISqlContext
Properties
View Source
DatabaseType
Declaration
DatabaseType DatabaseType { get; }
Property Value
Type |
Description |
DatabaseType |
|
View Source
Mappers
Declaration
IMapperCollection Mappers { get; }
Property Value
View Source
PocoDataFactory
Gets the Poco data factory.
Declaration
IPocoDataFactory PocoDataFactory { get; }
Property Value
Type |
Description |
IPocoDataFactory |
|
View Source
SqlSyntax
Gets the Sql syntax provider.
Declaration
ISqlSyntaxProvider SqlSyntax { get; }
Property Value
View Source
Templates
Declaration
SqlTemplates Templates { get; }
Property Value
Methods
View Source
Query<T>()
Creates a new query expression.
Declaration
Returns
Type Parameters
View Source
Sql()
Creates a new Sql expression.
Declaration
Returns
View Source
Sql(String, Object[])
Creates a new Sql expression.
Declaration
Sql<ISqlContext> Sql(string sql, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
sql |
|
System.Object[] |
args |
|
Returns