Requested object is not found and cannot be processed. When entering detail view of XAF NonPersistant object

28 Views Asked by At

My Non Persistant business object is something like this

using System.ComponentModel.DataAnnotations.Schema;
[DomainComponent]
[DefaultClassOptions]
public class AcmeResult : NonPersistentObjectBase{

   [Key] public int Id { get; set; }

}

At runtime, when I open the listview and double click to enter detail view I get an error.

1

There are 1 best solutions below

0
On

I had the wrong namespace for the key attribute. The following works.

[DevExpress.ExpressApp.Data.Key] public int Id { get; set; }