c# - Sharepoint DataSource in LightSwitch -


is there way select customize columns sharepointlist in lightswitch?

for example in preprocessquery method

query =query.select(x=> new customer{id=x.id,firstname=x.firstname,lastname=x.lastname}); 

in query id readonly property indexer 'id' cannot assigned -- read only

or when not select id in query in result select first customer

firstname lastname

lucas ponzo

lucas ponzo

lucas ponzo

lucas ponzo

. . .

not straight out of box, no i'm afraid not. lightswitch cannot return anonymous collections. can return collection of lightswitch entities.

the way achieve want in lightswitch use wcf ria can create custom models , return them way. michael washington has excellent articles on on website that can found here. also, this article started though if you're using vs2013.

hope helps.

paul.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -