You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public object Clone()
{
DataCommand cmd = new DataCommand();
if (m_DbCommand != null)
{
if (m_DbCommand is ICloneable)
{
cmd.m_DbCommand = ((ICloneable)m_DbCommand).Clone() as DbCommand;
}
else
{
throw new ApplicationException("A class that implements IClonable is expected.");
}
}
cmd.m_DatabaseName = m_DatabaseName;
return cmd;
}
The text was updated successfully, but these errors were encountered:
bgrainger
changed the title
((ICloneable)m_DbCommand).Clone() as DbCommand abnormal
Implement ICloneable on MySqlCommand
Nov 20, 2018
public object Clone()
{
DataCommand cmd = new DataCommand();
if (m_DbCommand != null)
{
if (m_DbCommand is ICloneable)
{
cmd.m_DbCommand = ((ICloneable)m_DbCommand).Clone() as DbCommand;
}
else
{
throw new ApplicationException("A class that implements IClonable is expected.");
}
}
cmd.m_DatabaseName = m_DatabaseName;
return cmd;
}
The text was updated successfully, but these errors were encountered: