how to pass parameters using mysqlcommand if i am passing like this i.m getting error can any one help me plssssssssssssss

Aug 4 2008 6:14 AM
public static void UpdateBrandDetails(BrandsENT objBrandsEnt)
       {
           Database db = DatabaseFactory.CreateDatabase("PriceRaja");
          MySqlCommand dbcommand = db.GetStoredProcCommand("PR_SP_UpdateBrandDetails");
           db.AddInParameter(dbcommand, "@brandid", DbType.Int64,objBrandsEnt.brandId);
           db.AddInParameter(dbcommand, "@Brand_name", DbType.String,objBrandsEnt.brand_name);
           db.AddInParameter(dbcommand, "@CreatedOn", DbType.DateTime,objBrandsEnt.CreatedOn);
          // db.AddInParameter(dbcommand, "@DBTime", DbType.DateTime, DBTime);
           db.ExecuteScalar(dbcommand);
       }