Search Results for

    Show / Hide Table of Contents
    View Source

    Class RepositoryBase

    Base repository class for all IRepository instances

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class RepositoryBase : IRepository

    Constructors

    View Source

    RepositoryBase(IScopeAccessor, AppCaches)

    Initializes a new instance of the RepositoryBase class.

    Declaration
    protected RepositoryBase(IScopeAccessor scopeAccessor, AppCaches appCaches)
    Parameters
    Type Name Description
    IScopeAccessor scopeAccessor
    AppCaches appCaches

    Properties

    View Source

    AmbientScope

    Gets the AmbientScope

    Declaration
    protected IScope AmbientScope { get; }
    Property Value
    Type Description
    IScope
    View Source

    AppCaches

    Gets the AppCaches

    Declaration
    protected AppCaches AppCaches { get; }
    Property Value
    Type Description
    AppCaches
    View Source

    Database

    Gets the repository's database.

    Declaration
    protected IUmbracoDatabase Database { get; }
    Property Value
    Type Description
    IUmbracoDatabase
    View Source

    ScopeAccessor

    Gets the IScopeAccessor

    Declaration
    protected IScopeAccessor ScopeAccessor { get; }
    Property Value
    Type Description
    IScopeAccessor
    View Source

    SqlContext

    Gets the Sql context.

    Declaration
    protected ISqlContext SqlContext { get; }
    Property Value
    Type Description
    ISqlContext
    View Source

    SqlSyntax

    Gets the ISqlSyntaxProvider

    Declaration
    protected ISqlSyntaxProvider SqlSyntax { get; }
    Property Value
    Type Description
    ISqlSyntaxProvider

    Methods

    View Source

    Query<T>()

    Creates a new query expression

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

    Sql()

    Creates an expression

    Declaration
    protected Sql<ISqlContext> Sql()
    Returns
    Type Description
    Sql<ISqlContext>
    View Source

    Sql(String, Object[])

    Creates a expression

    Declaration
    protected 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
    • Constructors
      • RepositoryBase(IScopeAccessor, AppCaches)
    • Properties
      • AmbientScope
      • AppCaches
      • Database
      • ScopeAccessor
      • SqlContext
      • SqlSyntax
    • Methods
      • Query<T>()
      • Sql()
      • Sql(String, Object[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX