Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

7. Configure OData at application startup

IharYakimush edited this page Apr 11, 2018 · 1 revision

Base configuration of OData behavior can be performed at application startup using following code:

ODataSettings.SetInitializer(
        s =>
            {
                s.ValidationSettings.MaxTop = 1000;
                s.QuerySettings.PageSize = 20;
            });

Configuration performed in OData() extension method always takes precedence.

Clone this wiki locally