In order to rank possible matches by relevence I wish to return a score, with different matches addingg a different value to the score, and a list of the items that matched (a list of strings). More matches the higher the rank should be.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static bool CheckValid(string controller, string action) | |
{ | |
if (!controller.Contains("Controller")) | |
{ | |
controller = controller + "Controller"; | |
} | |
// Get assembly | |
Assembly a = GetWebEntryAssembly(); | |
if (a != null) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF 1 = 2 | |
BEGIN | |
SELECT | |
cast(null as int) as UserId | |
,cast(null as nvarchar(250)) as Username | |
,cast(null as int) as RoleCount | |
,cast(null as datetime) as UserRevoked | |
,cast(null as bit) as Locked | |
,cast(null as bit) as ForcePassChange | |
,cast(null as varchar(200)) as ClientName |
NewerOlder