Skip to content

Feature request: Easier ways to get Content as T #11

Open
@NiclasLindqvist

Description

@NiclasLindqvist

When requesting content of a specific type, the inferred documentType name is nice as long as types are simple, but when my class name doesn't match the documentType things get unnecessarily hard. Please add string contentType to GetByType<T> and other <T> methods so that the developer can get whatever documents they want and still treat it as T in their context.

Also, a way to convert IContent to a T of your liking would be nice (automatically resolving the Properties dictionary to their corresponding class properties)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions