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.
I had the wrong namespace for the key attribute. The following works.