I define the method below in the DomainService class, but I get a compiler error: The "objectType" parameter of the GetPropertiesByGuiObject domain operation record must be one of the predefined serializable types .
public IQueryable<PropertyType> GetPropertiesByGuiObject(ObjectType objectType) { return properTypeDA0.GetPropertiesByGuiObject(objectType).AsQueryable(); }
ObjectType is the POCO class defined by me. I added the [Serializable] or [DataContract] attribute to the definition of the ObjectType class, but the error still exists. Can a domain operation operation parameter be a POCO object?
source share