Skip to main content
All docs
V24.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.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

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

Property Value

Type Description
Int32

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