You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class ProductDto
{
public string ProductDescription { get; set; }
}
public class JoinedProductSuppliers
{
public Product Product { get; set; }
public Supplier Supplier { get; set; }
}
Select Projection to DTO
var q = from p in context.Products
select new ProductDto
{
ProductDescription = p.Name
};
var result = q.ToList();
Select Projection to DTO with Join
var q = from p in context.Products
join s in context.Suppliers on p.Id equals s.Id
select new JoinedProductSuppliers
{
Product = p,
Supplier = s
};
var result = q.ToList();
Feature to be added to alpha release.
The text was updated successfully, but these errors were encountered: