Class SqlSyntaxExtensions
Provides extension methods to ISqlSyntaxProvider.
Inheritance
System.Object
      Namespace: Umbraco.Extensions
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class SqlSyntaxExtensionsMethods
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 | |
| System.Linq.Expressions.Expression<Func<TDto, System.Object>> | fieldSelector | An expression specifying the field. | 
| System.String | tableAlias | An optional table alias. | 
Returns
| Type | Description | 
|---|---|
| System.String | 
Type Parameters
| Name | Description | 
|---|---|
| TDto | The type of the DTO. |