问题
Im returning a complex object from the sql server as a JSON. But when im mapping to a List of String in dapper, the JSON string is being mapped to more than one string in the list depending upon the JSON length even though in DB i can see only one row for the result. So im having to append all the strings in the list and then deserialize the JSON to a object. I know it doesn't make a huge difference in terms of performance but why should i append all the string when i can directly deserialize. So is there a way to get the JSON result in a single string?
来源:https://stackoverflow.com/questions/53846502/mapping-json-response-from-sql-server-to-a-single-string