Filtering when using transient or computed fields. #18
-
In my persistent classes I have quite a few properties like I am trying to figure out a way to use calculated fields and still be able to use them in filtering my rest api. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@dangoldmanvt1 I think this is an issue in isc.rest (and/or possibly isc.json). We filter out transient properties for query purposes because they normally aren't projected to SQL, but turns out they are if you make them SqlComputed. (I just learned this... today!) Is there a reason that you Transient rather than Calculated for such fields? I believe Calculated + SqlComputed fields are available for filtering under the current implementation. |
Beta Was this translation helpful? Give feedback.
@dangoldmanvt1 I think this is an issue in isc.rest (and/or possibly isc.json). We filter out transient properties for query purposes because they normally aren't projected to SQL, but turns out they are if you make them SqlComputed. (I just learned this... today!)
Is there a reason that you Transient rather than Calculated for such fields? I believe Calculated + SqlComputed fields are available for filtering under the current implementation.