SUMMARY
When you try to compile the Visual Basic .NET sample code that is included in the
Sample .NET Data Provider topic in the Microsoft .NET Framework Software Development Kit (SDK) documentation, you receive the following error messages:
TemplateCommand.vb(6) : error BC30149: 'DotNetDataProviderTemplate.TemplateCommand' must implement 'Overridable Overloads Function CreateParameter() As IDbDataParameter' for interface 'System.Data.IDbCommand'.
TemplateCommand.vb(6) : error BC30149: 'DotNetDataProviderTemplate.TemplateCommand' must implement 'Overridable Overloads Sub Dispose()' for interface 'System.IDisposable'.
TemplateCommand.vb(136) : error BC30401: 'CreateParameter' cannot implement 'CreateParameter' because there is no matching function on interface 'IDbCommand'.
Public Function CreateParameter() As IDataParameter Implements IDbCommand.CreateParameter
TemplateConnection.vb(7) : error BC30149: 'DotNetDataProviderTemplate.TemplateConnection' must implement 'Overridable Overloads Sub Dispose()' for interface 'System.IDisposable'.
TemplateDataReader.vb(8) : error BC30149: 'DotNetDataProviderTemplate.TemplateDataReader' must implement 'Overridable Overloads Sub Dispose()' for interface 'System.IDisposable'.
TemplateTransaction.vb(7) : error BC30154: 'DotNetDataProviderTemplate.TemplateTransaction' must implement 'Overridable Overloads ReadOnly Property Connection() As IDbConnection' for interface 'System.Data.IDbTransaction'. Implementing property must have matching 'ReadOnly'/'WriteOnly' specifiers.
TemplateTransaction.vb(7) : error BC30149: 'DotNetDataProviderTemplate.TemplateTransaction' must implement 'Overridable Overloads Sub Dispose()' for interface 'System.IDisposable'.