Dil

ProjectionExpression Sınıf

Tanım

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class ProjectionExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression, Microsoft.EntityFrameworkCore.Query.IRelationalQuotableExpression
public class ProjectionExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
public sealed class ProjectionExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class ProjectionExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type ProjectionExpression = class
    inherit Expression
    interface IRelationalQuotableExpression
    interface IPrintableExpression
type ProjectionExpression = class
    inherit Expression
    interface IPrintableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type ProjectionExpression = class
    inherit Expression
    interface IPrintableExpression
Public NotInheritable Class ProjectionExpression
Inherits Expression
Implements IPrintableExpression, IRelationalQuotableExpression
Public Class ProjectionExpression
Inherits Expression
Implements IPrintableExpression
Public NotInheritable Class ProjectionExpression
Inherits Expression
Implements IPrintableExpression
Devralma
ProjectionExpression
Özellikler
Uygulamalar

Açıklamalar

Bu, bir SqlExpression ve diğer adı çevresinde basit bir sarmalayıcıdır. Bu türün örnekleri uygulama veya veritabanı sağlayıcı kodu tarafından oluşturulamaz. Bu, uygulamanız veya sağlayıcınız için bir sorunsa lütfen github.com/dotnet/efcore'da bir sorun oluşturun.

Oluşturucular

Veri Akışı Adı Description
ProjectionExpression(SqlExpression, String)

Bu, Entity Framework Core altyapısını destekleyen ve genel API'ler ile aynı uyumluluk standartlarına tabi olmayan bir iç API'dir. Herhangi bir sürümde bildirimde bulunmaksızın değiştirilebilir veya kaldırılabilir. Bunu yalnızca kodunuzda son derece dikkatli bir şekilde kullanmanız ve bunu yapmanın yeni bir Entity Framework Core sürümüne güncelleştirme sırasında uygulama hatalarına neden olabileceğini bilmeniz gerekir.

Özellikler

Veri Akışı Adı Description
Alias

Varsa, bu projeksiyona atanan diğer ad.

Expression

Yansıtılmakta olan SQL değeri.

NodeType

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

Type

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

Yöntemler

Veri Akışı Adı Description
Equals(Object)

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

GetHashCode()

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

Print(ExpressionPrinter)

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

Quote()

İfadeyi alıntılar; yani, değerlendirildiğinde bu ifadeyle aynı bir ifade oluşturacak bir ifade döndürür. Bu ifadeyi yeniden oluşturan önceden derlenmiş sorgular için kod oluşturmak için kullanılır.

Update(SqlExpression)

Bunun gibi, ancak sağlanan alt öğeleri kullanarak yeni bir ifade oluşturur. Tüm alt öğeler aynıysa, bu ifadeyi döndürür.

VisitChildren(ExpressionVisitor)

içindeki SelectExpressionbir projeksiyonu temsil eden ifade.

Belirtik Arabirim Kullanımları

Veri Akışı Adı Description
IPrintableExpression.Print(ExpressionPrinter)

kullanarak ExpressionPrinterverilen ifadenin yazdırılabilir dize gösterimini oluşturur.

Şunlara uygulanır