Skip to main content
A newer version of this page is available.
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

EFObjectSpace.CreateServerCollection(Type, CriteriaOperator) Method

Creates and initializes a new instance of the EFServerCollection class with criteria-specific options.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v19.2.dll

Declaration

public override object CreateServerCollection(
    Type objectType,
    CriteriaOperator criteria
)

Parameters

Name Type Description
objectType Type

The type of persistent objects to include into the collection.

criteria CriteriaOperator

The DevExpress.Data.Filtering.CriteriaOperator that specifies the criteria for object selection in a data store.

Returns

Type Description
Object

A server collection that includes the persistent objects of the specified type. In addition, only objects that satisfy the specified criteria will be retrieved to this collection.

Remarks

The newly created collection will use the current Object Space to load and save persistent objects.

This method is used by Collection Sources (see CollectionSource and PropertyCollectionSource) to create a collection in server mode.

See Also