Table of Contents

Interface IRelationalQueryStringFactory

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Implemented by database providers to generate the query string for Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToQueryString(System.Linq.IQueryable).

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IRelationalQueryStringFactory

Remarks

The service lifetime is Scoped. This means that each Microsoft.EntityFrameworkCore.DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

Methods

Create(DbCommand)

Returns a formatted query string for the given command.

string Create(DbCommand command)

Parameters

command DbCommand

The command that represents the query.

Returns

string

The formatted string.