Reputation: 18160
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.
Upvotes: 0
Views: 104
Reputation: 18160
I had the wrong namespace for the key attribute. The following works.
[DevExpress.ExpressApp.Data.Key] public int Id { get; set; }
Upvotes: 0