Skip to content

Commit 116398d

Browse files
maca88fredericDelaporte
authored andcommitted
Add support for fetching an individual lazy property with hql and linq provider (#1922)
1 parent f5e2431 commit 116398d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3169
-113
lines changed

src/NHibernate.Test/Async/FetchLazyProperties/FetchLazyPropertiesFixture.cs

+1,008
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace NHibernate.Test.FetchLazyProperties
8+
{
9+
public class Address
10+
{
11+
public string City { get; set; }
12+
13+
public string Country { get; set; }
14+
15+
public Continent Continent { get; set; }
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+

2+
namespace NHibernate.Test.FetchLazyProperties
3+
{
4+
public abstract class Animal
5+
{
6+
public virtual int Id { get; set; }
7+
8+
public virtual int Formula { get; set; }
9+
10+
public virtual string Name { get; set; }
11+
12+
public virtual Address Address { get; set; }
13+
14+
public virtual byte[] Image { get; set; }
15+
16+
public virtual Person Owner { get; set; }
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+

2+
namespace NHibernate.Test.FetchLazyProperties
3+
{
4+
public class Cat : Animal
5+
{
6+
public virtual string SecondFormula { get; set; }
7+
8+
public virtual byte[] SecondImage { get; set; }
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace NHibernate.Test.FetchLazyProperties
8+
{
9+
public class Continent
10+
{
11+
public virtual int Id { get; set; }
12+
13+
public virtual string Name { get; set; }
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+

2+
namespace NHibernate.Test.FetchLazyProperties
3+
{
4+
public class Dog : Animal
5+
{
6+
}
7+
}

0 commit comments

Comments
 (0)