I have a stored procedure that returns a record like this (I simplified it)
SELECT
Id, FirstName, LastName, Father.FirstName, Father.LastName
FROM Profiles
Left JOIN Profiles Father on Profiles.FatherId = Father.Id
I want this record to be returned as 2 properties of an object
var result = dataContext.StoredProcedure();
Profile = result.Profile;
Father = result.Father;
My question is, how do i take the single record
SELECT
Id, FirstName, LastName, Father.FirstName, Father.LastName
And split half of it to become one property/object (Profile), and the other half to become the other property/object (Father)
Reason For Using a Stored Procedure The actual sql statement includes a Full Text search, which is not supported in linq, so i cannot use a normal linq query.