-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added converter for xmla filter rule
- Loading branch information
1 parent
245a7a1
commit f365b5e
Showing
3 changed files
with
29 additions
and
7 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
19 changes: 19 additions & 0 deletions
19
src/Reveal.Sdk.Dom/Core/Serialization/Converters/XmlaFilterRuleConverter.cs
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,19 @@ | ||
using Reveal.Sdk.Dom.Core.Constants; | ||
using Reveal.Sdk.Dom.Filters; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Reveal.Sdk.Dom.Core.Serialization.Converters | ||
{ | ||
internal class XmlaFilterRuleConverter : TypeMapConverter<XmlaFilterRule> | ||
{ | ||
public XmlaFilterRuleConverter() | ||
{ | ||
TypeMap = new Dictionary<string, Type>() | ||
{ | ||
{ SchemaTypeNames.XmlaNumberFilterRuleType, typeof(XmlaNumberFilterRule) }, | ||
{ SchemaTypeNames.XmlaStringFilterRuleType, typeof(XmlaStringFilterRule) }, | ||
}; | ||
} | ||
} | ||
} |
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