File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -209,5 +209,17 @@ await WrapExceptionAsync(entity.Id, async () =>
209209 _ = await Context . SaveChangesAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
210210 } , cancellationToken ) . ConfigureAwait ( false ) ;
211211 }
212+
213+ /// <inheritdoc />
214+ public virtual async ValueTask < int > CountAsync ( IQueryable < TEntity > query , CancellationToken cancellationToken = default )
215+ {
216+ return await query . CountAsync ( cancellationToken ) ;
217+ }
218+
219+ /// <inheritdoc />
220+ public virtual async ValueTask < IList < TEntity > > ToListAsync ( IQueryable < TEntity > query , CancellationToken cancellationToken = default )
221+ {
222+ return await query . ToListAsync ( cancellationToken ) ;
223+ }
212224 #endregion
213225}
Original file line number Diff line number Diff line change @@ -38,10 +38,11 @@ internal void InitializeDatabase(bool clearEntities)
3838 }
3939 }
4040
41- protected override void OnConfiguring ( DbContextOptionsBuilder optionsBuilder )
42- {
43- optionsBuilder . ConfigureWarnings ( w => w . Ignore ( CosmosEventId . SyncNotSupported ) ) ;
44- }
41+ // (Issue #199) - remove the sync over async capabilities introduced in .NET 9
42+ //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
43+ //{
44+ // optionsBuilder.ConfigureWarnings(w => w.Ignore(CosmosEventId.SyncNotSupported));
45+ //}
4546
4647 protected override void OnModelCreating ( ModelBuilder modelBuilder )
4748 {
You can’t perform that action at this time.
0 commit comments