Blazor Grid FROMSQLRAW Storedprocedure

Hi all,

I was hoping you could show me a sample where the grid has autogenerated columns from a stored procedure returning a set of data that is not aligned with a specific entity.

The stored procedure should join related tables together to show composite data.  
For example, SELECT p.name, p.DOB, g.genderName as gender FROM person.p LEFT JOIN gender g ON p.genderId = g.genderId WHERE p.personId = @PersonID

I am using EF Core 5.

Thank you in advance!




1 Reply 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team March 3, 2021 02:55 PM UTC

Hi Andrew, 

Greetings from Syncfusion support. 

We suggest you to refer the below documentation on the sql server data binding and auto generated columns. As similar to the documentation we suggest you to invoke the sql queries(stored procedure) in the Custom Adaptor’s Read/ReadAsync method. 


Please get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 


Marked as answer
Loader.
Up arrow icon