Share via


QueryTypeBuilder<TQuery>.Ignore Method

Definition

Overloads

Ignore(Expression<Func<TQuery,Object>>)

Excludes the given property from the query type. This method is typically used to remove properties from the query type that were added by convention.

Ignore(String)

Excludes the given property from the query type. This method is typically used to remove properties from the query type that were added by convention.

Ignore(Expression<Func<TQuery,Object>>)

Excludes the given property from the query type. This method is typically used to remove properties from the query type that were added by convention.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<TQuery> Ignore (System.Linq.Expressions.Expression<Func<TQuery,object>> propertyExpression);
override this.Ignore : System.Linq.Expressions.Expression<Func<'Query, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<'Query (requires 'Query : null)>
Public Overridable Function Ignore (propertyExpression As Expression(Of Func(Of TQuery, Object))) As QueryTypeBuilder(Of TQuery)

Parameters

propertyExpression
Expression<Func<TQuery,Object>>

A lambda expression representing the property to be ignored (blog => blog.Url).

Returns

Applies to

Ignore(String)

Excludes the given property from the query type. This method is typically used to remove properties from the query type that were added by convention.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<TQuery> Ignore (string propertyName);
override this.Ignore : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<'Query (requires 'Query : null)>
Public Overridable Function Ignore (propertyName As String) As QueryTypeBuilder(Of TQuery)

Parameters

propertyName
String

The name of then property to be removed from the query type.

Returns

Applies to