DbExtensions.Include Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Include(IQueryable, String) | |
Include<T,TProperty>(IQueryable<T>, Expression<Func<T,TProperty>>) | |
Include<T>(IQueryable<T>, String) |
Include(IQueryable, String)
public static System.Linq.IQueryable Include (this System.Linq.IQueryable source, string path);
static member Include : System.Linq.IQueryable * string -> System.Linq.IQueryable
<Extension()>
Public Function Include (source As IQueryable, path As String) As IQueryable
Parameters
- source
- IQueryable
- path
- String
Returns
Applies to
Include<T,TProperty>(IQueryable<T>, Expression<Func<T,TProperty>>)
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static System.Linq.IQueryable<T> Include<T,TProperty> (this System.Linq.IQueryable<T> source, System.Linq.Expressions.Expression<Func<T,TProperty>> path) where T : class;
static member Include : System.Linq.IQueryable<'T (requires 'T : null)> * System.Linq.Expressions.Expression<Func<'T, 'Property>> -> System.Linq.IQueryable<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function Include(Of T As Class, TProperty As Class) (source As IQueryable(Of T), path As Expression(Of Func(Of T, TProperty))) As IQueryable(Of T)
Type Parameters
- T
- TProperty
Parameters
- source
- IQueryable<T>
- path
- Expression<Func<T,TProperty>>
Returns
IQueryable<T>
- Attributes
Applies to
Include<T>(IQueryable<T>, String)
public static System.Linq.IQueryable<T> Include<T> (this System.Linq.IQueryable<T> source, string path) where T : class;
static member Include : System.Linq.IQueryable<'T (requires 'T : null)> * string -> System.Linq.IQueryable<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function Include(Of T As Class) (source As IQueryable(Of T), path As String) As IQueryable(Of T)
Type Parameters
- T
Parameters
- source
- IQueryable<T>
- path
- String
Returns
IQueryable<T>
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for