forked from beyond-code-github/LinqToQuerystring
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfiguration.cs
More file actions
22 lines (20 loc) · 782 Bytes
/
Configuration.cs
File metadata and controls
22 lines (20 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace LinqToQuerystring.EntityFramework
{
using LinqToQuerystring.Utils;
public static class Configuration
{
public static void Init()
{
if (!LinqToQuerystring.Configuration.CustomNodes.ContainsKey("DbQueryProvider"))
{
LinqToQuerystring.Configuration.CustomNodes.Add("DbQueryProvider", new CustomNodeMappings());
}
var objectQueryNodes = LinqToQuerystring.Configuration.CustomNodes["DbQueryProvider"];
if (!objectQueryNodes.ContainsKey(LinqToQuerystringLexer.EXPAND))
{
objectQueryNodes.Add(
LinqToQuerystringLexer.EXPAND, (type, token, factory) => new ExpandNode(type, token, factory));
}
}
}
}