This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, I checked the option "Validate Unique" at a field of a ValueObject. While inserting the object at the DB I get this Excption: System.ArgumentException: The provided type [XYZ.Domain.Model.Membership] must inherit from [Mindscape.LightSpeed.Entity]
Parametername: entityType
bei Mindscape.LightSpeed.Querying.Query..ctor(Type entityType, QueryExpression queryExpression)
bei Mindscape.LightSpeed.Validation.UniqueValidationRule.Validate(ValidationContext validationContext)
bei Mindscape.LightSpeed.Model.FieldModel.Validate(ValidationContext , ICollection Sörnt |
|
|
Hi Soernt, Can you check you're on a recent nightly? I know you're usually pretty up-to-date, but this sounds awfully like something we fixed a month or so back. If you are already on a recent nightly (or the latest one doesn't help), could you post the relevant bits of the entity and value object please? Thanks! |
|
|
Hi Ivan, I installed the current nightly but the problem is still there. I attached a demo project. Sörnt |
|
|
Thanks for the repro. I've committed a fix which will be in the next nightly build, available from about 1200 UTC. |
|
|
Thanks for this fix! Sörnt |
|