Dropdownlist cast problem with context .net

.Net core version 7.0

Blazor Server side app version 21.2.8

Hi,

i have a compile problem with a detail Grid that cointain a dropdownlist to bind:

in index.razor line 158 on ActionBeginHandlerClientiCateg void i use two variables:

query and query1 the first one is bind data with a query that return resultset as IEnumerable<Categorie>

the second a function database  bind data that return resultset as IQueryable<fn_CategorieNonAssegnateResult>

when i assign the second to the variable LibraryCategorie declare as  IEnumerable<Categorie> i get compile error: 

Cannot implicit convert type List to IEnumerable 

Can you help me?

How i can cast List to enumerable?

thanks in advance.  



Attachment: Syncfusion_Support_421272e4.7z

1 Reply

BL Balamurugan Lakshmanan Syncfusion Team June 11, 2023 06:39 AM UTC

Hi Angelo,


Greeting from Syncfusion Support.


Before proceeding further with your requirement, we need some more clarifications from your end. kindly share the below details to proceed further at our end.


  1. Share us the entire Grid code snippet.
  2. Kindly explain your requirement elaborately for better understanding.
  3. Could you please mention the compile error for further validation at our end?.
  1. Share us a video demonstration of the issue.
  2. If possible kindly share us a simple issue reproduceable sample .


Above requested details will be very helpful in validating the reported query at our end and provide solution as early as possible.


Regards,

Bala


Loader.
Up arrow icon