我想啓動OnModel創建每個new DataContext(new Entity()) ... 但是,當我創建一個表的連接,它的工作原理。當創建另一個表的連接,再次OnModelCreating行不通的,所以因爲我也有錯誤, the entity type <tableName> is not part of the model for the current context. public c
,所以我有一個實體和複雜類型之間的簡單關係PropertyChanged事件,我想通知實體時,複雜類型的變化,在此代碼 [Table("Bills")]
public class Bill : NotifyBase
{
//how to call SetWithNotif when this changes ?
public virtual Discount Discoun
select *
from [InterViewerComment]
where commentID in (select max(commentID) as commentID
from [InterViewerComment]
where jobID = 45
group by qenID)
該查詢在SQL中是正確的,但我想在實體框