Search Results for

    Show / Hide Table of Contents
    View Source

    Class SqlTemplate

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Persistence
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class SqlTemplate

    Methods

    View Source

    Arg(String)

    Gets a named argument.

    Declaration
    public static object Arg(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Object
    View Source

    Arg<T>(String)

    Gets a WHERE expression argument.

    Declaration
    public static T Arg<T>(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    View Source

    ArgIn<T>(String)

    Gets a WHERE IN expression argument.

    Declaration
    public static IEnumerable<T> ArgIn<T>(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Collections.IEnumerable<T>
    Type Parameters
    Name Description
    T
    View Source

    Sql()

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

    Sql(Object[])

    Declaration
    public Sql<ISqlContext> Sql(params object[] args)
    Parameters
    Type Name Description
    System.Object[] args
    Returns
    Type Description
    Sql<ISqlContext>
    View Source

    SqlNamed(Object)

    Declaration
    public Sql<ISqlContext> SqlNamed(object nargs)
    Parameters
    Type Name Description
    System.Object nargs
    Returns
    Type Description
    Sql<ISqlContext>
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Arg(String)
      • Arg<T>(String)
      • ArgIn<T>(String)
      • Sql()
      • Sql(Object[])
      • SqlNamed(Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX