Created
March 24, 2015 10:29
-
-
Save twiernik/18fd5f25b40897c85deb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var node = new ConditionNode | |
| { | |
| LhsOperand = new PropertyOperand | |
| { | |
| OperandDescription = new PropertyDescription(TypeId.GetTypeId<DateTime>(), | |
| new LocalizableString { ResourceKey = PromotionSharedStrings.ResourceNames.ReportPromotionDateTo }, | |
| new NHibernateMetadata | |
| { | |
| FieldName = "rp.DateTo", | |
| RequiredJoins = new string[0], | |
| }), | |
| }, | |
| RelationalOperator = new GtOperator<DateTime> | |
| { | |
| Metadata = new OperatorMetadata { Type = RelationalOperatorType.IsGreaterThan, SkipIsLikeAsValueModification = true } | |
| }, | |
| RhsOperand = new ConstantOperand { Value = DateTime.Now.AddMonths(-2), OperandDescription = new ConstantDescription(TypeId.GetTypeId<DateTime>()) }, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment