H
Hai Nguyen
I have this piece of code, I want to set this parameter could be a null
value:
OleDbParameter myParam = new OleDbParameter ( "Description",
OleDbType.BigInt, 100 );
myParam.IsNullable = true;
myParam.Direction = ParameterDirection.Input;
}
It did not work on my Visual Studio .Net 2003 even though I already using
System.Data.OleDb;
I saw there was something like set_IsNullable. I tried use
myParam.set_IsNullable(true). It throws me this error:"cannot explicitly
call operator or accessor".
Is there an alternative way ?
Also, if there is a solution how I can I set the value is null
value:
OleDbParameter myParam = new OleDbParameter ( "Description",
OleDbType.BigInt, 100 );
myParam.IsNullable = true;
myParam.Direction = ParameterDirection.Input;
}
It did not work on my Visual Studio .Net 2003 even though I already using
System.Data.OleDb;
I saw there was something like set_IsNullable. I tried use
myParam.set_IsNullable(true). It throws me this error:"cannot explicitly
call operator or accessor".
Is there an alternative way ?
Also, if there is a solution how I can I set the value is null