Here is a sample code: You can create a method like this in a class, where in you pass the databaseinstance as parameter, then determine the type of the database and create the parameter accordingly. I'm just showing you the idea but you can modify this
to what code that fits you.
static DbParameter CreateParameter(Database db)
if (db.GetType() ==
Global Technology & Solutions