using System;
using System.Data;
using System.Data.SqlClient;
using NUnit.Framework;
namespace myNameSpace
{
[TestFixture]
public class TestCasting
{
[Test]
public void CastIDataParameter()
{
IDataParameter param = new SqlParameter("myParamName", true);
SqlParameter castedParam = (param as SqlParameter);
I decided not to use the IDataParameter object and went with using the
SqlParameter object directly. I got rid of the code I had before that
wasn't working so unfortunately can't send it along, but I think it
might have been more of a problem with some common code I was trying to
use within our group. Thanks though!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.