-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for fetching an individual lazy property with hql and lin…
…q provider (#1922)
- Loading branch information
1 parent
f5e2431
commit 116398d
Showing
42 changed files
with
3,169 additions
and
113 deletions.
There are no files selected for viewing
1,008 changes: 1,008 additions & 0 deletions
1,008
src/NHibernate.Test/Async/FetchLazyProperties/FetchLazyPropertiesFixture.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace NHibernate.Test.FetchLazyProperties | ||
{ | ||
public class Address | ||
{ | ||
public string City { get; set; } | ||
|
||
public string Country { get; set; } | ||
|
||
public Continent Continent { get; set; } | ||
} | ||
} |
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,18 @@ | ||
| ||
namespace NHibernate.Test.FetchLazyProperties | ||
{ | ||
public abstract class Animal | ||
{ | ||
public virtual int Id { get; set; } | ||
|
||
public virtual int Formula { get; set; } | ||
|
||
public virtual string Name { get; set; } | ||
|
||
public virtual Address Address { get; set; } | ||
|
||
public virtual byte[] Image { get; set; } | ||
|
||
public virtual Person Owner { get; set; } | ||
} | ||
} |
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,10 @@ | ||
| ||
namespace NHibernate.Test.FetchLazyProperties | ||
{ | ||
public class Cat : Animal | ||
{ | ||
public virtual string SecondFormula { get; set; } | ||
|
||
public virtual byte[] SecondImage { get; set; } | ||
} | ||
} |
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,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace NHibernate.Test.FetchLazyProperties | ||
{ | ||
public class Continent | ||
{ | ||
public virtual int Id { get; set; } | ||
|
||
public virtual string Name { get; set; } | ||
} | ||
} |
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,7 @@ | ||
| ||
namespace NHibernate.Test.FetchLazyProperties | ||
{ | ||
public class Dog : Animal | ||
{ | ||
} | ||
} |
Oops, something went wrong.