Skip to content

Commit

Permalink
Generate async files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 31, 2023
1 parent 396a962 commit 438175b
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

using System.Linq;
using NHibernate.Criterion;
using NHibernate.Dialect;
using NHibernate.Linq;
using NHibernate.SqlCommand;
using NHibernate.Transform;
Expand Down Expand Up @@ -41,14 +40,7 @@ protected override void OnTearDown()
using (var session = OpenSession())
using (var transaction = session.BeginTransaction())
{
// The HQL delete does all the job inside the database without loading the entities, but it does
// not handle delete order for avoiding violating constraints if any. Use
// session.Delete("from System.Object");
// instead if in need of having NHibernate ordering the deletes, but this will cause
// loading the entities in the session.

session.Delete("from System.Object");

transaction.Commit();
}
}
Expand All @@ -70,9 +62,6 @@ public async Task TestUnfilteredLinqQueryAsync()
[Test]
public async Task TestFilteredByWhereCollectionLinqQueryAsync()
{
if(Dialect is PostgreSQLDialect)
Assert.Ignore("Dialect doesn't support 0/1 to bool implicit cast");

using (var s = OpenSession())
{
var query = await (s.Query<Asset>()
Expand Down Expand Up @@ -154,9 +143,6 @@ public async Task TestQueryOverRestrictionWithClauseAsync()
[Test]
public async Task LazyLoadAsync()
{
if (Dialect is PostgreSQLDialect)
Assert.Ignore("Dialect doesn't support 0/1 to bool implicit cast");

using (var s = OpenSession())
{
var asset = await (s.Query<Asset>().FirstAsync());
Expand All @@ -169,9 +155,6 @@ public async Task LazyLoadAsync()
[Test]
public async Task LazyLoadFilteredAsync()
{
if (Dialect is PostgreSQLDialect)
Assert.Ignore("Dialect doesn't support 0/1 to bool implicit cast");

using (var s = OpenSession())
{
s.EnableFilter("deletedFilter").SetParameter("deletedParam", false);
Expand Down

0 comments on commit 438175b

Please sign in to comment.