is this casting valid

  • Thread starter Thread starter VBM
  • Start date Start date
Have you tried it and seen what happens? That's probably the best way to
see what's going on. FYI, Remember that the difference between DBType and
SqlDbType for instance is that SqlDbType is a DbType, but it's the provider
specific (SqlClient) version of it. So what would you gain by having a
generic type? If you tried to do anything with it to another DB, you'd have
some trouble. And if you are only sending it back to a SQL Server DB...then
why cast it?

Give it a try though...and see what happens.
 
Back
Top