コード例 #1
0
 /// <summary>
 /// Ensures that the reader is actually open, and throws an exception if not
 /// </summary>
 private void AssertReaderIsOpen()
 {
     if (IsExplicitlyClosed)
     {
         throw EntityUtil.ClosedDataReaderError();
     }
     if (IsImplicitlyClosed)
     {
         throw EntityUtil.ImplicitlyClosedDataReaderError();
     }
 }