This question is locked. New answers and comments are not allowed.
Hi !
After I installed the new version of ORM I have a problem.
So I have a table with 2 field ID and Description.
I have this code
Before this coee run perfect. I as able to bind this list to a control to show id and description.
Now, after ORM upgrade, I get this error:
Description = '(new System.Collections.Generic.Mscorlib_CollectionDebugView<WO_BaseClassLibrary.PA_JobType>(listJobType)).Items[0].Description' threw an exception of type 'Telerik.OpenAccess.Exceptions.InvalidOperationException'
base {Telerik.OpenAccess.OpenAccessException} = {"The 'IObjectScope' is already closed"}
Why I get this error ?
Regards
Hans
After I installed the new version of ORM I have a problem.
So I have a table with 2 field ID and Description.
I have this code
public static IList<PA_JobType
> GetPaJobTypeList()
{
IList<PA_JobType> listObj;
using (WoDbContext localContext = new WoDbContext
())
{
IQueryable<PA_JobType> tempListObj = (from c in localContext.PA_JobTypes select
c).OrderBy(f => f.JobType);
listObj = tempListObj.ToList();
}
return
listObj;
}
Before this coee run perfect. I as able to bind this list to a control to show id and description.
Now, after ORM upgrade, I get this error:
Description = '(new System.Collections.Generic.Mscorlib_CollectionDebugView<WO_BaseClassLibrary.PA_JobType>(listJobType)).Items[0].Description' threw an exception of type 'Telerik.OpenAccess.Exceptions.InvalidOperationException'
base {Telerik.OpenAccess.OpenAccessException} = {"The 'IObjectScope' is already closed"}
Why I get this error ?
Regards
Hans