Skip to content

Add support for fetching an individual lazy property with hql and linq provider #1922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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