-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da0642c
commit 1345afb
Showing
3 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# GridifyGlobalConfiguration | ||
|
||
Using this class you can change the default behavior and configuration of the gridify library. | ||
|
||
## Properties | ||
|
||
### DefaultPageSize | ||
|
||
The default page size for the paging methods when no page size is specified. | ||
|
||
- type: `int` | ||
- default: `20` | ||
|
||
### CaseSensitiveMapper | ||
|
||
By default mappings are case insensitive. for example, `name=John` and `Name=John` are considered equal. | ||
You can change this behavior by setting this property to `true`. | ||
|
||
- type: `bool` | ||
- default: `false` | ||
- related to: [GridifyMapper - CaseSensitive](./gridifyMapper.md#casesensitive) | ||
|
||
### AllowNullSearch | ||
|
||
This option enables the 'null' keyword in filtering operations, for example, `name=null` searches for all records with a null value for the `name` field not the string `"null"`. if you need to search for the string `"null"` you can | ||
|
||
- type: `bool` | ||
- default: `true` | ||
- related to: [GridifyMapper - AllowNullSearch](./gridifyMapper.md#allownullsearch) | ||
|
||
### IgnoreNotMappedFields | ||
|
||
If true, in filtering and ordering operations, gridify doesn't return any exceptions when a mapping is not defined for the given field. | ||
|
||
- type: `bool` | ||
- default: `false` | ||
- related to: [GridifyMapper - IgnoreNotMappedFields](./gridifyMapper.md#ignorenotmappedfields) | ||
|
||
### EntityFrameworkCompatibilityLayer | ||
|
||
Setting this property to `true` Enables the EntityFramework Compatibility layer to make the generated expressions compatible whit entity framework. | ||
|
||
- type: `bool` | ||
- default: `false` | ||
|
||
::: tip | ||
Lean more about the [compatibility layer](./entity-framework.md#compatibility-layer) | ||
::: | ||
|
||
## Methods | ||
|
||
### EnableEntityFrameworkCompatibilityLayer() | ||
|
||
Simply sets the [EntityFrameworkCompatibilityLayer](#entityframeworkcompatibilitylayer) property to `true`. | ||
|
||
### DisableEntityFrameworkCompatibilityLayer() | ||
|
||
Simply sets the [EntityFrameworkCompatibilityLayer](#entityframeworkcompatibilitylayer) property to `false`. |