2008年5月7日 星期三

SQL Server how to update table from another table's value

update r set associater=c.coursegroup from courseassistantlist c ,recommendassociate r where r.createcourseid=c.createcourseid

Entity Framework 建立新物件並儲存後馬上取得關聯資料

使用 CreateProxy 建立物件,不要直接 new var newmodel = _contextXXX.CreateProxy<yyy>(); ... _contextXXX.yyy.Add(newmodel); await _contextXXX.SaveC...