Skip to main content

Definition

Assembly: Microsoft.AspNetCore.OData.dll Namespace: Microsoft.AspNet.OData.Builder

Syntax

Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> where T : CloudNimble.EasyAF.Core.DbObservableObject

Summary

This type is defined in Microsoft.AspNetCore.OData.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

IgnoreAuditFields Extension

Extension method from Microsoft.Restier.Core.Model.IModelBuilderExtensions
Configures the entity set to ignore audit trail fields in the OData model. Dynamically removes DateCreated, DateUpdated, CreatedById, and UpdatedById properties based on implemented interfaces.

Syntax

public static Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> IgnoreAuditFields<T>(Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> configuration) where T : CloudNimble.EasyAF.Core.EasyObservableObject

Parameters

NameTypeDescription
configurationMicrosoft.AspNet.OData.Builder.EntitySetConfiguration<T>The entity set configuration to modify.

Returns

Type: Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> The entity set configuration for method chaining.

Type Parameters

  • T - The entity type that inherits from EasyObservableObject.

IgnoreTrackingFields Extension

Extension method from Microsoft.Restier.Core.Model.IModelBuilderExtensions
Configures the entity set to ignore DbObservableObject tracking fields in the OData model. Excludes IsChanged, IsGraphChanged, ShouldTrackChanges, and OriginalValues from the model.

Syntax

public static Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> IgnoreTrackingFields<T>(Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> configuration) where T : CloudNimble.EasyAF.Core.DbObservableObject

Parameters

NameTypeDescription
configurationMicrosoft.AspNet.OData.Builder.EntitySetConfiguration<T>The entity set configuration to modify.

Returns

Type: Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> The entity set configuration for method chaining.

Type Parameters

  • T - The entity type that inherits from DbObservableObject.