If user has model type like following:<br /><br />public class BaseEntity<br />{<br />public string Name { get; set;}<br />}<br />public class Product : BaseEntity<br />{<br />public int ProductID { get; set; }<br />}<br /><br />You can't query on Product as it defines primary key in derived type instead of base type.<br /><br />Since it's unnecessary to have ID property for queryable attribute to work, why we need this check on base type? We'd better disable the check to make query composition to be more flexible on different user scenarios.
↧