Skip to content

Session Create does not respect instance type #86

@zeitlerc

Description

@zeitlerc

Session Create relies on the cast type rather than the actual type. For instance, attempting to save a Model class that's cast to an object will cause an exception. Checking the instance type ( entity.GetType() ) would properly save the model in all cases.

var patient = new Patient();
// This explodes because Argo assumes the type is object
await session.Create((object)patient);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions