Search Results for

    Show / Hide Table of Contents
    View Source

    Class NPocoSqlExtensions.SqlConvert<TDto>

    Converts the specified SQL query to a typed SQL query for the given DTO type. This extension method enables strongly-typed access to query results.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class NPocoSqlExtensions.SqlConvert<TDto>
    Type Parameters
    Name Description
    TDto

    Constructors

    View Source

    SqlConvert(ISqlContext)

    Converts the specified SQL query to a typed SQL query for the given DTO type. This extension method enables strongly-typed access to query results.

    Declaration
    public SqlConvert(ISqlContext sqlContext)
    Parameters
    Type Name Description
    ISqlContext sqlContext

    Properties

    View Source

    SetExpressions

    Gets the collection of SQL SET expressions generated for the current DTO type.

    Declaration
    public List<string> SetExpressions { get; }
    Property Value
    Type Description
    List<string>

    Methods

    View Source

    ConvertUniqueIdentifierToString(Expression<Func<TDto, object?>>)

    Adds an expression to convert a unique identifier (GUID) field to its string representation within the SQL query for the specified DTO.

    Declaration
    public NPocoSqlExtensions.SqlConvert<TDto> ConvertUniqueIdentifierToString(Expression<Func<TDto, object?>> fieldSelector)
    Parameters
    Type Name Description
    Expression<Func<TDto, object>> fieldSelector

    An expression that selects the unique identifier field to convert.

    Returns
    Type Description
    NPocoSqlExtensions.SqlConvert<TDto>

    The current NPocoSqlExtensions.SqlConvert<TDto> instance, allowing for method chaining.

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