Skip to content

Entities without primary keys #3

@jburditt

Description

@jburditt

If there is one or more entities without a primary key then the rest of the entities break on tracking:

Initialization method Dashing.Repository.Tests.CRUDTests.Test_Initialize threw exception. System.InvalidCastException: System.InvalidCastException: Unable to cast object of type 'Dashing.Model.Product' to type 'Dashing.CodeGeneration.ITrackedEntity'..

To reproduce add this class to TestDomain:

public class NoPrimary {
    public virtual string Name { get; set; }
}

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