If you accidentally run the LINQ executor on a different type than Searchlight understands, there is a risk that your field types won't match exactly. The scenario in question is a potential risk when you have different data models for an entity (representing the database) and a model (representing the API).
This code adds assertions that verify whether the problem has occurred and throws appropriate Searchlight errors.
If you accidentally run the LINQ executor on a different type than Searchlight understands, there is a risk that your field types won't match exactly. The scenario in question is a potential risk when you have different data models for an entity (representing the database) and a model (representing the API).
This code adds assertions that verify whether the problem has occurred and throws appropriate Searchlight errors.