Class SqlSyntaxExtensions
Provides extension methods to ISql
Inheritance
System.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 |
---|---|---|
ISql |
sqlSyntax | |
System. |
fieldSelector | An expression specifying the field. |
System. |
tableAlias | An optional table alias. |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
TDto | The type of the DTO. |