No, I was wrong.
The class for MSSQL
public static class SqlDataLayerConverter
+ {
+ public static int VerifyInt32(object o)
+ {
+ return (int)o;
+ }
+ public static bool VeryfyBool(object o)
+ {
+ return (bool)o;
+ }
+ }
doesn't work, because unboxing doesn't work safe in the case though it's fast.
Convert.To... should be used anyway:cry:
This makes boxing of DataRow value which is already filled by a value.
I was somehow completly sure that it should work.
And it's impossible to make dynamic conversion class without code deep changing in many places.
Sorry.
Edited by user
14 years ago
|
Reason: Not specified