Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ISqlContext

    Specifies the Sql context.

    Namespace: Umbraco.Cms.Infrastructure.Persistence
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface ISqlContext

    Properties

    View Source

    DatabaseType

    Gets the database type.

    Declaration
    DatabaseType DatabaseType { get; }
    Property Value
    Type Description
    DatabaseType
    View Source

    Mappers

    Gets the mappers.

    Declaration
    IMapperCollection Mappers { get; }
    Property Value
    Type Description
    IMapperCollection
    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
    Type Description
    ISqlSyntaxProvider
    View Source

    Templates

    Gets the Sql templates.

    Declaration
    SqlTemplates Templates { get; }
    Property Value
    Type Description
    SqlTemplates

    Methods

    View Source

    Query<T>()

    Creates a new query expression.

    Declaration
    IQuery<T> Query<T>()
    Returns
    Type Description
    IQuery<T>
    Type Parameters
    Name Description
    T
    View Source

    Sql()

    Creates a new Sql expression.

    Declaration
    Sql<ISqlContext> Sql()
    Returns
    Type Description
    Sql<ISqlContext>
    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
    Type Description
    Sql<ISqlContext>
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • DatabaseType
      • Mappers
      • PocoDataFactory
      • SqlSyntax
      • Templates
    • Methods
      • Query<T>()
      • Sql()
      • Sql(String, Object[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX