Skip to content

Commit

Permalink
Add support for fetching an individual lazy property with hql and lin…
Browse files Browse the repository at this point in the history
…q provider (#1922)
  • Loading branch information
maca88 authored and fredericDelaporte committed Jan 30, 2019
1 parent f5e2431 commit 116398d
Show file tree
Hide file tree
Showing 42 changed files with 3,169 additions and 113 deletions.
1,008 changes: 1,008 additions & 0 deletions src/NHibernate.Test/Async/FetchLazyProperties/FetchLazyPropertiesFixture.cs

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions src/NHibernate.Test/FetchLazyProperties/Address.cs
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; }
}
}
18 changes: 18 additions & 0 deletions src/NHibernate.Test/FetchLazyProperties/Animal.cs
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; }
}
}
10 changes: 10 additions & 0 deletions src/NHibernate.Test/FetchLazyProperties/Cat.cs
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; }
}
}
15 changes: 15 additions & 0 deletions src/NHibernate.Test/FetchLazyProperties/Continent.cs
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; }
}
}
7 changes: 7 additions & 0 deletions src/NHibernate.Test/FetchLazyProperties/Dog.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

namespace NHibernate.Test.FetchLazyProperties
{
public class Dog : Animal
{
}
}
Loading

0 comments on commit 116398d

Please # to comment.