Skip to main content
All docs
V22.2

MongoDBDataSourceBase.SchemaDiscoveryMaxItemCount Property

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

Namespace: DevExpress.DataAccess.MongoDB

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess

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