コード例 #1
0
        public void ShouldCreateAddSecondsExpression()
        {
            var factory = new DbExpressionFactory();
            DbDateTimeFunctionExpression dateTimeFunctionExpression;

            dateTimeFunctionExpression = factory.AddSeconds(factory.Column("SomeDateTimeColumn"), factory.Constant(2));
            ValidateDateTimeFunctionExpression(dateTimeFunctionExpression, DbDateTimeFunctionExpressionType.AddSeconds);
        }
コード例 #2
0
 public void ShouldCreateAddSecondsExpression()
 {
     var factory = new DbExpressionFactory();
     DbDateTimeFunctionExpression dateTimeFunctionExpression;
     dateTimeFunctionExpression = factory.AddSeconds(factory.Column("SomeDateTimeColumn"), factory.Constant(2));
     ValidateDateTimeFunctionExpression(dateTimeFunctionExpression, DbDateTimeFunctionExpressionType.AddSeconds);
 }