Ejemplo n.º 1
0
        public void TimeDiffMilliseconds()
        {
            TimeSpan time = stored.Add(TimeSpan.FromMilliseconds(-1));

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

            q.Should().NotBeEmpty();
        }
        public void DateTimeDiffMilliseconds()
        {
            DateTime date = stored.AddMilliseconds(-1);

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

            q.Should().NotBeEmpty();
        }