-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,916 additions
and
1,773 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using ReindexerNet; | ||
using ReindexerNetBenchmark.EmbeddedBenchmarks; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ReindexerNetBenchmark; | ||
|
||
internal static class BenchmarkHelper | ||
{ | ||
public static object CaptureResult(this BenchmarkEntity entity) | ||
=> entity.PreventLazy(); | ||
|
||
public static object CaptureResult(this BenchmarkRealmEntity entity) | ||
=> entity.PreventLazy(); | ||
|
||
public static object CaptureResult(this IEnumerable<BenchmarkEntity> entites) | ||
=> entites.Select(e => e.PreventLazy()).ToList(); | ||
|
||
public static object CaptureResult(this IEnumerable<BenchmarkRealmEntity> entites) | ||
=> entites.Select(e => e.PreventLazy()).ToList(); | ||
|
||
public static object CaptureResult(this QueryItemsOf<BenchmarkEntity> result) | ||
=> result.Items.Select(e => e.PreventLazy()).ToList(); | ||
} |
Oops, something went wrong.