"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
Original issue reported on code.google.com by
longnhi....@gmail.com
on 16 Apr 2011 at 4:34