Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
EF - When to Use Include by ZZZ Projects
Opened connection at 6/5/2025 9:15:11 PM +00:00
SELECT 
    [Extent1].[CustomerID] AS [CustomerID], 
    [Extent1].[Name] AS [Name]
    FROM [dbo].[Customers] AS [Extent1]
-- Executing at 6/5/2025 9:15:11 PM +00:00
-- Completed in 2 ms with result: SqlDataReader

Closed connection at 6/5/2025 9:15:11 PM +00:00
Customer Name: Customer_1
Opened connection at 6/5/2025 9:15:11 PM +00:00
SELECT 
    [Extent1].[InvoiceID] AS [InvoiceID], 
    [Extent1].[Date] AS [Date], 
    [Extent1].[CustomerID] AS [CustomerID]
    FROM [dbo].[Invoices] AS [Extent1]
    WHERE [Extent1].[CustomerID] = @EntityKeyValue1
-- EntityKeyValue1: '1' (Type = Int32, IsNullable = false)
-- Executing at 6/5/2025 9:15:11 PM +00:00
-- Completed in 5 ms with result: SqlDataReader

Closed connection at 6/5/2025 9:15:11 PM +00:00
    Invoice Date: 5/3/2018 12:00:00 AM
    Invoice Date: 5/31/2025 9:15:11 PM
    Invoice Date: 6/2/2025 9:15:11 PM
Customer Name: Customer_2
Opened connection at 6/5/2025 9:15:11 PM +00:00
SELECT 
    [Extent1].[InvoiceID] AS [InvoiceID], 
    [Extent1].[Date] AS [Date], 
    [Extent1].[CustomerID] AS [CustomerID]
    FROM [dbo].[Invoices] AS [Extent1]
    WHERE [Extent1].[CustomerID] = @EntityKeyValue1
-- EntityKeyValue1: '2' (Type = Int32, IsNullable = false)
-- Executing at 6/5/2025 9:15:11 PM +00:00
-- Completed in 1 ms with result: SqlDataReader

Closed connection at 6/5/2025 9:15:11 PM +00:00
    Invoice Date: 4/15/2018 12:00:00 AM
Customer Name: Customer_3
Opened connection at 6/5/2025 9:15:11 PM +00:00
SELECT 
    [Extent1].[InvoiceID] AS [InvoiceID], 
    [Extent1].[Date] AS [Date], 
    [Extent1].[CustomerID] AS [CustomerID]
    FROM [dbo].[Invoices] AS [Extent1]
    WHERE [Extent1].[CustomerID] = @EntityKeyValue1
-- EntityKeyValue1: '3' (Type = Int32, IsNullable = false)
-- Executing at 6/5/2025 9:15:11 PM +00:00
-- Completed in 1 ms with result: SqlDataReader

Closed connection at 6/5/2025 9:15:11 PM +00:00
    Invoice Date: 2/20/2018 12:00:00 AM
    Invoice Date: 5/22/2018 12:00:00 AM
Cached Result
Last Run: 9:15:06 pm
Compile: 0.349s
Execute: 8.496s
Memory: 49.77Mb
CPU: 4.672s