internal void Prepare(SqlCommand cmd)
{
if (null == _metaType)
{
throw ADP.PrepareParameterType(cmd);
}
else if (!ShouldSerializeSize() && !_metaType.IsFixed)
{
throw ADP.PrepareParameterSize(cmd);
}
else if ((!ShouldSerializePrecision() && !ShouldSerializeScale()) && (_metaType.SqlDbType == SqlDbType.Decimal))
{
throw ADP.PrepareParameterScale(cmd, SqlDbType.ToString());
}
}