Breeze sharp create complexType in blazor to pass some data does not work

68 views Asked by At

I am using breeze sharp in my C# blazor application to pass data from my server (loaded from EF context (code first objects)) to the client (EntityType objects) Everything works fine. Now I want to pass an object with some data from server to client with a class that is not mapped to a database context. I think I should use ComplexType to pass this data container object so that my client object is inherited from BaseComplexObject When I try to call my data like I always do:

var query = new EntityQuery<T>().InlineCount().From(from);
var response = await entityManager.ExecuteQuery(query, CancellationToken.None);

I get an error: A type by this name exists but is not a Breeze.Sharp.EntityType

I don't find any way to pass a custom object with data from server to client.

0

There are 0 answers