Hi
I have created a generic base class for my entities but I'm running into some issues with the serialization. I have defined the generic class as below.
public abstract class EntityBase<T> : EntityBase { }
|
I'm getting Error:
while getting known types for Type 'NetstarSecurity.DevForce.Model.EntityBase`1[T]'. The type must not be an open or partial generic class.
|
Now obviously my basetype is a open generic class...
I have tried adding the [KnownType(typeof(EntityBase<User>))] attribute but it still gives the same error.
Please help. :)