Skip to content
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

EF Core 3.1 - Allow mapping of multiple entities using stored procedure #27068

Closed
KevinMaguire opened this issue Dec 27, 2021 · 1 comment
Closed

Comments

@KevinMaguire
Copy link

Hi I was wondering if there are any plans to introduce soon the capability to allow mapping of related entities by calling stored procedures? ie: by using FromSqlRaw or FromSqlInterpolated?

( using EF Core 3.1, .Net Core 6.0, Visual Studio 2022)

If we take the 2 classes below, is it or will it be possible to execute 1 database call and create the Address entity inside my customer object?

public class Customer
{
public int CustomerID { get; set; }
public string Name{ get; set;}
public Address Address{ get; set; }
}

public class Address
{
public int AddressID { get; set; }
public string PremisesNo { get; set; }
public string Line1{ get; set; }
public string Line2{ get; set; }
public string PostCode { get; set; }
}

thanks

@smitpatel
Copy link
Member

Duplicate of #14525

@smitpatel smitpatel marked this as a duplicate of #14525 Jan 3, 2022
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants