markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 302 forks source link

Simple.Data InMemoryAdapter throws “Operation is not valid due to the current state of the object.” #330

Open hugoforte opened 10 years ago

hugoforte commented 10 years ago

Issue explained here: http://stackoverflow.com/questions/21343306/simple-data-inmemoryadapter-throws-operation-is-not-valid-due-to-the-current-st

hugoforte commented 10 years ago

I got the latest from master and tried to reproduce this issue, it seems to be reproducible with the latest (0.19) published nuget package, but in master it's fixed. Any time frame on having another push to nuget?

gyurisc commented 6 years ago

I am seeing the same issue when connecting my SQL DB with Simple.Data v 0.19. Any ideas why this is happening?

gyurisc commented 6 years ago

I solved my issue after reading the documentation. It seems that after opening the db I do not need to close, so I removed my db.Close() statement and do not get the exception anymore...