0
public Product {
public DateTime ExpirationDate {get;set;}
public bool IsExpired(){
return ExpirationDate < DateTime.Now;
}
}
db.Products.Where(c => c.IsExpired());
當我嘗試查詢時出現錯誤。如何查詢基於實體功能的EF 5.0實體?