Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

Created Issue: Disable base type ID check in queryable mode [569]

$
0
0
If user has model type like following:

public class BaseEntity
{
public string Name { get; set;}
}
public class Product : BaseEntity
{
public int ProductID { get; set; }
}

You can't query on Product as it defines primary key in derived type instead of base type.

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.

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>