Page 1 of 1

Is it possible to map an entity to "nothing"?

Posted: Tue 25 Jan 2011 12:08
by object
My model has a complex type (ComplexType) used by stored procedures to return result sets. Unfortunately WCF Data Services (OData) does not suppose exposing complex types, only standard entity types. So I converted the complex type into an entity, but now I am getting another problem: this entity is obviously unmapped, so Devart data generator fails to generate C# file for the model complaining about unmatched entity in a conceptual model.

Is there any workaround for this? I could probably map this entity to a non-existing table, but I would like to find something more elegant.

Posted: Wed 26 Jan 2011 12:51
by AndreyR
The approach with fake table is valid and appropriate.
You can try creating a correct QueryView as well.

Posted: Wed 26 Jan 2011 12:56
by object
Thanks, creating view seems to be more lightweight.