G
Guest
Hi everyone,
I'm trying to convert the
Microsoft.ApplicationBlocks.Data to work with SQL Server
CE but after some replace I've problem yet.
In particular:
===Error===============================
Cannot implicitly convert
type 'System.Data.SqlServerCe.SqlCeDataAdapter'
to "System.IDisposable'
===End Error===========================
===Code that generates error===========
// Create the DataAdapter & DataSet
using( SqlCeDataAdapter da = new SqlCeDataAdapter(cmd) )
{
//other code
}
===End Code===============================
===Error===============================
'System.Data.SqlServerCe.SqlCeCommand' does not contain a
definition for 'ExecuteXmlReader'
===End Error===========================
===Code that generates error===========
// Create the DataAdapter & DataSet
XmlReader retval = cmd.ExecuteXmlReader();
===End Code===============================
===Error===============================
'System.Data.SqlServerCe.SqlCeCommandBuilder' does not
contain a definition for 'DeriveParameters'
===End Error===========================
===Code that generates error===========
SqlCeCommandBuilder.DeriveParameters(cmd);
===End Code===============================
===Error===============================
Cannot convert
type 'System.Data.SqlServerCe.SqlCeConnection'
to 'System.ICloneable'
===End Error===========================
===Code that generates error===========
using (SqlCeConnection clonedConnection = (SqlCeConnection)
((ICloneable)connection).Clone())
{
//other code
}
===End Code===============================
===End Error===========================
Any suggestion?
Thank you.
Antonio.
I'm trying to convert the
Microsoft.ApplicationBlocks.Data to work with SQL Server
CE but after some replace I've problem yet.
In particular:
===Error===============================
Cannot implicitly convert
type 'System.Data.SqlServerCe.SqlCeDataAdapter'
to "System.IDisposable'
===End Error===========================
===Code that generates error===========
// Create the DataAdapter & DataSet
using( SqlCeDataAdapter da = new SqlCeDataAdapter(cmd) )
{
//other code
}
===End Code===============================
===Error===============================
'System.Data.SqlServerCe.SqlCeCommand' does not contain a
definition for 'ExecuteXmlReader'
===End Error===========================
===Code that generates error===========
// Create the DataAdapter & DataSet
XmlReader retval = cmd.ExecuteXmlReader();
===End Code===============================
===Error===============================
'System.Data.SqlServerCe.SqlCeCommandBuilder' does not
contain a definition for 'DeriveParameters'
===End Error===========================
===Code that generates error===========
SqlCeCommandBuilder.DeriveParameters(cmd);
===End Code===============================
===Error===============================
Cannot convert
type 'System.Data.SqlServerCe.SqlCeConnection'
to 'System.ICloneable'
===End Error===========================
===Code that generates error===========
using (SqlCeConnection clonedConnection = (SqlCeConnection)
((ICloneable)connection).Clone())
{
//other code
}
===End Code===============================
===End Error===========================
Any suggestion?
Thank you.
Antonio.