In this case, the Visual Studio designer generates a method which takes the parameter as an int, even though the corresponding database column is specified as System.Int64.
This is the query specified in the "TableAdapter Query Configuration Wizard":
SELECT *
FROM my_table
WHERE "status_id" = ?
Again, status_id is of type System.Int64. This is what the designer generates:
public virtual DataSet1.MyDataTable GetDataByStatusId(int status_id) { ... }
Why isn't the parameter an Int64? Is this a bug in Visual Studio? (I'm using 2008 SP1.) I may end up just manually using the OdbcCommand class.
Edit: I'm using PostgreSQL, and the column is specified as type bigint.