As we know, ASP.NET web api (ApiController) gives JSON response automatically through NewtonSoft.JSON.
My three-level 1:MANY:1 EF data model is queried in several ways and it works fine with applying [JsonIgnore] attribute to some virtual properties in order to eliminate reference circulation issue. (I use third solution in this(link) answer)
but my problem is, I sometimes need to use json-ignored properties to query with model.
Is there any method to control [JsonIgnore] attribute during runtime? Or, is there any method to switch on-and-off property to be ignored in NewtonSoft.JSON during runtime?