This project is read-only.
1

Closed

Object Disposed Exception

description

I use DBML and in the case i dont set Dataloadoptions i get an ObjectDiposedException after i closed the Connection and still use the Instance of the dbml object.

I would need a Setting for irgnoring the ObjectDisposedException.



bei System.Data.Linq.DataContext.CheckDispose()
bei System.Data.Linq.DataContext.GetTable(Type type)
bei System.Data.Linq.CommonDataServices.GetDataMemberQuery(MetaDataMember member, Expression[] keyValues)
bei System.Data.Linq.CommonDataServices.DeferredSourceFactory1.ExecuteKeyQuery(Object[] keyValues)
bei System.Data.Linq.CommonDataServices.DeferredSourceFactory
1.Execute(Object instance)
bei System.Data.Linq.CommonDataServices.DeferredSourceFactory1.DeferredSource.GetEnumerator()
bei System.Data.Linq.EntitySet
1.Load()
bei System.Data.Linq.EntitySet`1.get_Count()
bei KellermanSoftware.CompareNetObjects.TypeComparers.ListComparer.ListsHaveDifferentCounts(CompareParms parms) in Compare-NET-Objects-Distribution\Source\Compare-NET-Objects\TypeComparers\ListComparer.cs:Zeile 84.
bei KellermanSoftware.CompareNetObjects.TypeComparers.ListComparer.CompareType(CompareParms parms) in Compare-NET-Objects-Distribution\Source\Compare-NET-Objects\TypeComparers\ListComparer.cs:Zeile 49.

comments

gfinzer wrote Dec 17, 2015 at 1:56 PM

Sounds good. Please go ahead and implement the setting with a unit test and then create a patch and I will merge.

Thanks,
Greg

wrote Mar 5, 2016 at 2:21 AM