Search Results for

    Show / Hide Table of Contents
    View Source

    Class SqlSyntaxExtensions

    Provides extension methods to ISqlSyntaxProvider.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public static class SqlSyntaxExtensions

    Methods

    View Source

    GetFieldName<TDto>(ISqlSyntaxProvider, Expression<Func<TDto, object?>>, string?)

    Gets a quoted table and field name.

    Declaration
    public static string GetFieldName<TDto>(this ISqlSyntaxProvider sqlSyntax, Expression<Func<TDto, object?>> fieldSelector, string? tableAlias = null)
    Parameters
    Type Name Description
    ISqlSyntaxProvider sqlSyntax

    An ISqlSyntaxProvider.

    Expression<Func<TDto, object>> fieldSelector

    An expression specifying the field.

    string tableAlias

    An optional table alias.

    Returns
    Type Description
    string
    Type Parameters
    Name Description
    TDto

    The type of the DTO.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX