public static DbCommand AddParameter(this DbCommand command, ISqlObjectFactory sqlObjectFactory, string parameterName, object value) { var parameter = sqlObjectFactory.GetParameter(parameterName, value); command.Parameters.Add(parameter); return(command); }