Article ID: 317952 - Last Review: March 7, 2002 - Revision: 1.2 DOC: Corrections to Visual C# .NET Samples in "Sample .NET Data Provider" DocumentationThis article was previously published under Q317952 SUMMARY
When you try to compile the Visual C# .NET sample code that is included in the
Sample .NET Data Provider
(http://msdn.microsoft.com/en-us/library/26xsd945.aspx)
topic in the Microsoft .NET Framework Software Development Kit (SDK) documentation, you receive the following error messages:
TemplateConnection.cs(6,16): error CS0535: 'DotNetDataProviderTemplate.TemplateConnection' does not implement interface member 'System.IDisposable.Dispose()'
-and-
TemplateCommand.cs(6,16): error CS0536: 'DotNetDataProviderTemplate.TemplateCommand' does not implement interface member 'System.Data.IDbCommand.CreateParameter()'. 'DotNetDataProviderTemplate.TemplateCommand.CreateParameter()' is either static, not public, or has the wrong return type.
-and-
TemplateCommand.cs(124,27): (Location of symbol related to previous error)
TemplateCommand.cs(6,16): error CS0535: 'DotNetDataProviderTemplate.TemplateCommand' does not implement interface member 'System.IDisposable.Dispose()'
-and-
TemplateTransaction.cs(6,16): error CS0535: 'DotNetDataProviderTemplate.TemplateTransaction' does not implement interface member 'System.Data.IDbTransaction.Connection'
TemplateTransaction.cs(6,16): error CS0535: 'DotNetDataProviderTemplate.TemplateTransaction' does not implement interface member 'System.IDisposable.Dispose()'
-and-
TemplateDataReader.cs(7,16): error CS0535: 'DotNetDataProviderTemplate.TemplateDataReader' does not implement interface member 'System.IDisposable.Dispose()'
MORE INFORMATION
To resolve these errors, you must modify the code in the Visual C# .NET samples.
TemplateCommand.cs
TemplateDataReader.cs
TemplateTransaction.cs
TemplateConnection.cs
| Article Translations
|
Back to the top
