I added config.AddODataQueryFilter() to the setup and on the Controller's get method, but I now receive the exception:Ī first chance exception of type '' occurred in .dllĪdditional information: 'EnumerableQuery`1' cannot be serialized using the ODataMediaTypeFormatter. A set of losses and metrics (defined by compiling the model or calling addloss () or addmetric () ). We can use EdmEnumType to define an Enum. Let’s see how to build the Customer-Order business model. The Edm model built by this method is called type-less model, or week type model, or just un-typed model. cannot be serialized because it does not have a default public constructor.' > using System using using .Binary using. An optimizer (defined by compiling the model). As mentioned in previous section, to build Edm model explicitly is to create an IEdmModel object directly using ODatalib API. A set of weights values (the 'state of the model'). Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. The architecture, or configuration, which specifies what layers the model contain, and how they're connected. I have been trying to adapt the DynamicEdmModelCreation sample from into a workable v3 version (I want to load odata directly into excel, which doesn't support odata v4 yet) Just starting the service gives the following error: Type '' cannot be serialized.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |