The designer class gets generated with lines like this:
Code: Select all
Dim command As EntityCommand = New EntityCommand()
Code: Select all
Using command As EntityCommand = New EntityCommand()
Microsoft.Reliability, CA2000: Dispose objects before losing scope
"call System.IDisposable.Dispose on object 'command' before all references to it are out of scope."
I tested this with the following versions of Devart dotConnect for Oracle:
-6.10.121
-6.80.350
-7.2.96
The problem is easy to reproduce; just drag a PL/SQL procedure on to the model, and take a look at the generated method in the designer class.
It would be fantastic if this deficiency was remedied in a future version of dotConnect.