Tagged Questions

0
votes
1answer
104 views

Closing an SqlDataReader

I have an ASP.Net 2.0 Web Forms Application using SQL Server 2008. The application has a UI layer and Data Access Layer. I use Enterprise Libray 5.0 to persist the data. Recently my site has been ...
0
votes
1answer
190 views

SQLDataReader connection close

How to define rule in stylecop to force developer to close SQLDataReader() or connection? if there exists any other solution then also please suggest. The solution required is to force developer to ...
3
votes
4answers
158 views

closing SQLDataReaders - how to tell if they are closed?

I'm finding that I'm having some website connection pool issues and I'm in the process of tracking them down. I know one thing to look for is to make sure that any SQLDataReaders get closed and I've ...
2
votes
1answer
295 views

Getting exception: Invalid attempt to read when reader is closed

I am attempting to read a MySQL database from my C# project using the MySQL drivers for .net off the MySQL site. Though I did a bit of research on this (including this), I am still flummoxed why this ...
2
votes
2answers
201 views

F# - Convert Sequence.Generate to Sequence Expression

I have the following code that uses Sequence objects to read data from a database table. V1 works correctly but since the Seq.generate function is deprecated I receive compiler warnings. I tried to ...
3
votes
3answers
3k views

MySQL Connector/NET connection multiple DataReaders per Connection?

Hey guys, I'm migrating from Java to C# now that I've realized I prefer the C# language features over the ones in Java, but I have this small issue. In MySQL Connector/J and JDBC, I believe that one ...