草庐IT

MemberLoan

全部标签

c# - 解决 "The ObjectContext instance has been disposed and can no longer be used for operations that require a connection"InvalidOperationException

我正在尝试使用EntityFrameworkm填充GridView,但每次我都会收到以下错误:"Propertyaccessor'LoanProduct'onobject'COSIS_DAL.MemberLoan'threwthefollowingexception:TheObjectContextinstancehasbeendisposedandcannolongerbeusedforoperationsthatrequireaconnection."我的代码是:publicListGetAllMembersForLoan(stringkeyword){using(CosisEnt

c# - 解决 "The ObjectContext instance has been disposed and can no longer be used for operations that require a connection"InvalidOperationException

我正在尝试使用EntityFrameworkm填充GridView,但每次我都会收到以下错误:"Propertyaccessor'LoanProduct'onobject'COSIS_DAL.MemberLoan'threwthefollowingexception:TheObjectContextinstancehasbeendisposedandcannolongerbeusedforoperationsthatrequireaconnection."我的代码是:publicListGetAllMembersForLoan(stringkeyword){using(CosisEnt