Class SqlSyntaxExtensions
Provides extension methods to ISqlSyntaxProvider.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class SqlSyntaxExtensions
Methods
View SourceGetFieldName<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 | |
| 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. |