-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename Evaluator build methods Improve documentation * update to v2.4.3 * fix BuildFilteringExpression benchmark name * add Evaluator test (in-memory db) * update Compile and Reuse examples * update Compile and Reuse description * update AddCondition documentation
- Loading branch information
1 parent
406b518
commit ceae36e
Showing
9 changed files
with
146 additions
and
73 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
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
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
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,37 @@ | ||
using System; | ||
using System.Linq; | ||
using Xunit; | ||
|
||
namespace EntityFrameworkIntegrationTests.cs | ||
{ | ||
public class DatabaseFixture : IDisposable | ||
{ | ||
public DatabaseFixture() | ||
{ | ||
_dbContext = new MyDbContext(); | ||
AddTestUsers(); | ||
// ... initialize data in the test database ... | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
_dbContext.Dispose(); | ||
} | ||
|
||
public MyDbContext _dbContext { get; private set; } | ||
private void AddTestUsers() | ||
{ | ||
Assert.Equal(0,_dbContext.Users.Count()); | ||
_dbContext.Users.AddRange( | ||
new User { Id = 1, Name = "ahmad" }, | ||
new User { Id = 2, Name = "ali" }, | ||
new User { Id = 3, Name = "vahid" }, | ||
new User { Id = 4, Name = "hamid" }, | ||
new User { Id = 5, Name = "Hamed" }, | ||
new User { Id = 6, Name = "sara" }, | ||
new User { Id = 7, Name = "Ali" }); | ||
|
||
_dbContext.SaveChanges(); | ||
} | ||
} | ||
} |
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