From source code net connector 6.9.4 (6.9.3 too)
SimpleRoleProvider.cs
===============
internal int GetRoleId(string role)
{
using (MySqlDatabaseWrapper dbConn = new MySqlDatabaseWrapper(GetConnectionString()))
{
var roleid = dbConn.ExecuteQuerySingleRecord(string.Format("select roleid from {0} where rolename=?;", _rolesTable), role);
if (role != null)
return (int)role[0];
return 0;
}
}
=================
¿Maybe return (int)roleid[0]?
Now MySqlSimpleRoleProvider.RoleExists("rolename") is ALWAYS true
SimpleRoleProvider.cs
===============
internal int GetRoleId(string role)
{
using (MySqlDatabaseWrapper dbConn = new MySqlDatabaseWrapper(GetConnectionString()))
{
var roleid = dbConn.ExecuteQuerySingleRecord(string.Format("select roleid from {0} where rolename=?;", _rolesTable), role);
if (role != null)
return (int)role[0];
return 0;
}
}
=================
¿Maybe return (int)roleid[0]?
Now MySqlSimpleRoleProvider.RoleExists("rolename") is ALWAYS true