The problem here is that the @DatabaseName in the command is not an SQL datatype field. You instead need to build your query like so:
public void CreateDatabase(string databaseName)
{
string query = String.Format("CREATE DATABASE {0}", databaseName);
// now execute the query using DbCommand or similar class...
}