public void DateTimeAddMilliseconds()
        {
            DateTime date = stored.AddMilliseconds(-1);

#if !EFOLD
            var q = this.Entities
                    .Where(x =>
                           DbFunctions.AddMilliseconds(x.DateTime, -1) == date);
#else
            var q = this.Entities
                    .Where(x =>
                           EntityFunctions.AddMilliseconds(x.DateTime, -1) == date);
#endif

            q.Should().NotBeEmpty();
        }
예제 #2
0
        public void TimeAddMilliseconds()
        {
            TimeSpan time = stored.Add(TimeSpan.FromMilliseconds(-1));

#if !EFOLD
            var q = this.Entities
                    .Where(x =>
                           DbFunctions.AddMilliseconds(x.Time, -1) == time);
#else
            var q = this.Entities
                    .Where(x =>
                           EntityFunctions.AddMilliseconds(x.Time, -1) == time);
#endif

            q.Should().NotBeEmpty();
        }
예제 #3
0
        public void DateTimeOffsetAddMilliseconds()
        {
            DateTimeOffset offset = stored.AddMilliseconds(-1);

#if !EFOLD
            var q = this.Entities
                    .Where(x =>
                           DbFunctions.AddMilliseconds(x.Offset, -1) == offset);
#else
            var q = this.Entities
                    .Where(x =>
                           EntityFunctions.AddMilliseconds(x.Offset, -1) == offset);
#endif

            q.Should().NotBeEmpty();
        }