FromSqlExpression Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromSqlExpression(ITableBase, String, Expression) |
Creates a new instance of the FromSqlExpression class. |
FromSqlExpression(String, Expression, String) |
Obsolete.
Creates a new instance of the FromSqlExpression class. |
FromSqlExpression(String, String, Expression) |
Creates a new instance of the FromSqlExpression class. |
FromSqlExpression(ITableBase, String, Expression)
Creates a new instance of the FromSqlExpression class.
public FromSqlExpression (Microsoft.EntityFrameworkCore.Metadata.ITableBase defaultTableBase, string sql, System.Linq.Expressions.Expression arguments);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression : Microsoft.EntityFrameworkCore.Metadata.ITableBase * string * System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression
Public Sub New (defaultTableBase As ITableBase, sql As String, arguments As Expression)
Parameters
- defaultTableBase
- ITableBase
A default table base associated with this table source.
- sql
- String
A user-provided custom SQL for the table source.
- arguments
- Expression
A user-provided parameters to pass to the custom SQL.
Applies to
FromSqlExpression(String, Expression, String)
Caution
Use the constructor which takes alias as first argument.
Creates a new instance of the FromSqlExpression class.
public FromSqlExpression (string sql, System.Linq.Expressions.Expression arguments, string alias);
[System.Obsolete("Use the constructor which takes alias as first argument.")]
public FromSqlExpression (string sql, System.Linq.Expressions.Expression arguments, string alias);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression : string * System.Linq.Expressions.Expression * string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression
[<System.Obsolete("Use the constructor which takes alias as first argument.")>]
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression : string * System.Linq.Expressions.Expression * string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression
Public Sub New (sql As String, arguments As Expression, alias As String)
Parameters
- sql
- String
A user-provided custom SQL for the table source.
- arguments
- Expression
A user-provided parameters to pass to the custom SQL.
- alias
- String
A string alias for the table source.
- Attributes
Applies to
FromSqlExpression(String, String, Expression)
Creates a new instance of the FromSqlExpression class.
public FromSqlExpression (string alias, string sql, System.Linq.Expressions.Expression arguments);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression : string * string * System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.FromSqlExpression
Public Sub New (alias As String, sql As String, arguments As Expression)
Parameters
- alias
- String
An alias to use for this table source.
- sql
- String
A user-provided custom SQL for the table source.
- arguments
- Expression
A user-provided parameters to pass to the custom SQL.
Applies to
Entity Framework