2018年2月9日 星期五

關閉 modal 造成 console 出現 error : Possibly unhandled rejection: undefined

var modalInstance = $uibModal.open({
...
modalInstance.result.then(function () {}, function () { }); <= 增加此列就不會出現error

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

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