Wednesday, 15 July 2015

c# - How convert int to string column? -



c# - How convert int to string column? -

this question has reply here:

linq int string 9 answers

where expression:

filtrationresult = filtrationresult.where(string.format("convert.tostring({0}).contains(@0)", filter.field), filter.value);

filter.field name column (int32)

i error:

linq entities not recognize method 'system.string tostring(int32)' method, , method cannot translated store expression.

how correctly convert?

i'd create switch statement possible values filter.field, utilize ef generated properties.

c# sql entity-framework

No comments:

Post a Comment