Search Unity

Going insane, why am I getting this error?

Discussion in 'Scripting' started by GD-Darren, Jul 6, 2014.

  1. GD-Darren

    GD-Darren

    Joined:
    Jan 12, 2013
    Posts:
    53
    MySqlCommand cmd = new MySqlCommand("usp_GetAccountIdByAccountName", conn);
    cmd.CommandType = CommandType.StoredProcedure;

    --------------------------------------------------------------------------------------------------------------------------------------------------------
    error CS0266: Cannot implicitly convert type `System.Data.CommandType' to `System.Data.CommandType'. An explicit conversion exists (are you missing a cast?)
     
  2. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    Never mind. I read to fast. Strange.