Can I access the ListSource(of <entity>)?

Hi, Forum.

Can anyone let me know how to access the specific field value of a row from the ListSource(of ) type variable.

I’ve assigned the following to the variable (e.g., dtRows) of which type is ListSource(of UserInfo) but have no idea how to access the specific field value of a certain row from the dtRows.

Regards

@hongjoo.choi

.data will give the data

As it is list based on index each row is identified then if you do . Dot you will get the specific column data

Cheers

accessing the first item specific property
Fetch(…).data.First().YOURENTITYPROPERTY

accessing the a dedicated item specific property
Fetch(…).data.(3).YOURENTITYPROPERTY - the fourth item
Fetch(…).data.ElementAt(3).YOURENTITYPROPERTY - the fourth item

However we recommend to assing the the fetch result to a variable and doing the access at a specific item on the variable

Keep in mind: The underlying IEnumerable base type is deferred / lazy and will be executed on active call but not on initial assignments

@hongjoo.choi

i beleive it is same

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.