EF Models & Virtual Properties
EF Models & Virtual Properties

For serializing EF models with Newtonsoft I can use a ContractResolver to ignore properties that are virtual, etc. Is there a way to do this in the future with Datatables? Currently, unless I missed something I just have to make another Model to hold the properties I want to be included which isn't a big deal but it just adds debt to the items to maintain when being updated.
This discussion has been closed.
Answers
Hi,
This is with the Editor libraries for .NET is it (rather than DataTables itself, which is just a Javascript library)?
You are correct - at the moment it there is way to tell Editor to ignore properties in a model class. That said, it could readily be added using a custom decorator attribute. This is where the Editor class parses the properties of a model, so another change could be added there for a new attribute.
Allan