Sakura.AspNetCore.Extensions/Sakura.EntityFrameworkCore.FromSqlExtensions/DbContextFromSqlExtensions.cs
/// <summary>
///     Executing a SQL statement and retrieve the result set directly frm the specified <see cref="DbContext" />.
/// </summary>
/// <typeparam name="T">The type of the item in the result set.</typeparam>
/// <param name="dbContext">The <see cref="DbContext" /> instance.</param>
/// <param name="sql">The parameterized SQL statement represented as a <see cref="FormattableString" />.</param>
/// <returns>A <see cref="IQueryable{T}" /> instance which can be used for retrieving the result or making a further query.</returns>
Executing a SQL statement and retrieve the result set directly frm the specified .
Executing a SQL statement and retrieve the result set directly frm the specified .
[PublicAPI]
		public static IQueryable<T> FromSql<T>(this DbContext dbContext, FormattableString sql)
		{
			return dbContext.FromSql<T>(sql.Format, sql.GetArguments());
		}
[ PublicAPI ] public static IQueryable < T > FromSql < T > ( this DbContext dbContext , FormattableString sql ) { return dbContext . FromSql < T > ( sql . Format , sql . GetArguments ( ) ) ; }
Executing a SQL statement and retrieve the result set directly frm the specified .
Executing a SQL statement and retrieve the result set directly frm the specified .
A  instance which can be used for retrieving the result or making a further query.
A instance which can be used for retrieving the result or making a further query .
DbContext
this
sql
FormattableString
The parameterized SQL statement represented as a .
The parameterized SQL statement represented as a .
dbContext
None
typeparam
The type of the item in the result set.
The type of the item in the result set .