Skip to main content
A newer version of this page is available. .
All docs
V21.1

MongoDBDataSourceBase.SchemaDiscoveryMaxItemCount Property

Specifies the number of MongoDB collection items used to build the data source schema.

Namespace: DevExpress.DataAccess.MongoDB

Assembly: DevExpress.DataAccess.v21.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.Design

Declaration

[DefaultValue(100)]
[LocalizableCategory(DataAccessStringId.PropertyGridDataCategoryName)]
public int SchemaDiscoveryMaxItemCount { get; set; }

Property Value

Type Default Description
Int32 100

The number of MongoDB collection items used to build the data source schema.

Remarks

When you call the Fill() method of the MongoDBDataSource class, the data source executes queries to a MongoDB instance and analyses the structure of all loaded database collection items to build the data source schema. The SchemaDiscoveryMaxItemCount property allows you to limit the number of analysed collection items. The default value of this property is 100. The same limit applies for nested elements of each item. Set the value of the property to 0 to use all the collection items to build the data source schema.

See Also