maily89 / fbdm

Automatically exported from code.google.com/p/fbdm
0 stars 0 forks source link

[RNK-Business] RNKRankBusinessController.EditInfo #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
"Không thể nào Save information khi mà edit general info đc. Nó báo 
lỗi màu đỏ hiện trên trang đó: ""Error when editting Ranked business 
Customer. Please recheck your input "".
Nguyên nhân:
Sau khi đặt debug chỗ này cho cậu thì tớ thấy nó run đến hàm 
DataBaseHelper.AttachToOrGet thì xảy ra Exception ở dòng sau: if (attach)
                context.AttachTo(entitySetName, entity);
Xem tên Exception thì đó là lỗi: ""Cannot attach to the context because 
it's being used by other entities context.
Có thể là do ở Controller, cái xử lý thế này:
var entity = new FBDEntities();
var ranking = rknBusinessRankingViewModel.BusinessRanking;
cần xem lại - làm sao để nó attach hợp lệ!"

Original issue reported on code.google.com by longnhi....@gmail.com on 16 Apr 2011 at 4:34

GoogleCodeExporter commented 9 years ago

Original comment by maily...@gmail.com on 17 Apr 2011 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by maily...@gmail.com on 19 Apr 2011 at 3:14