Interestingly, I haven't applied the conversion code yet. So I'll just hold off for now. I did apply the data layer centralization changes.
No problem!
The code like this works fine. So the class will be universal for mssql & mysql,
but it will be different from postgresql one. I wanted it to work a bit more fast.
public static class SqlDataLayerConverter
+ {
+ public static int VerifyInt32(object o)
+ {
+ return Convert.ToInt32(o);
+ }
+ public static bool VeryfyBool(object o)
+ {
+ return Convert.ToBoolean(o);
+ }
+ }
It's safe and the above variant needs testing anyway.
Edited by user
14 years ago
|
Reason: Not specified