阅读背景:

使用linq检查数组的内容是否在数据库的列中

来源:互联网 

I have a function that returns a list of ids based on a separate selection. This function returns all the ids and they are displayed as checkboxes in the view. Once I select some of the checkboxes, they are saved to the database as a comma delimited string. When editing the selections, the user needs to be able to deselect selected check boxes and select alternate ones. The issue I have is how to set the checkboxes as checked that exist in comma delimited string in the database. I have a linq statement that creates an array of strings, but I'm not sure how to check any of the checkboxes that are in the array based on their ID.I have a function that returns a list of ids ba




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: