{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Microsoft.Data.Sqlite/issues/251","repository_url":"https://api.github.com/repos/aspnet/Microsoft.Data.Sqlite","labels_url":"https://api.github.com/repos/aspnet/Microsoft.Data.Sqlite/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Microsoft.Data.Sqlite/issues/251/comments","events_url":"https://api.github.com/repos/aspnet/Microsoft.Data.Sqlite/issues/251/events","html_url":"https://github.com/aspnet/Microsoft.Data.Sqlite/issues/251","id":155415908,"number":251,"title":"Feature: Allow SqliteDataReader.GetOrdinal to be case insensitive","user":{"login":"Xandroid4Net","id":5997627,"avatar_url":"https://avatars.githubusercontent.com/u/5997627?v=3","gravatar_id":"","url":"https://api.github.com/users/Xandroid4Net","html_url":"https://github.com/Xandroid4Net","followers_url":"https://api.github.com/users/Xandroid4Net/followers","following_url":"https://api.github.com/users/Xandroid4Net/following{/other_user}","gists_url":"https://api.github.com/users/Xandroid4Net/gists{/gist_id}","starred_url":"https://api.github.com/users/Xandroid4Net/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xandroid4Net/subscriptions","organizations_url":"https://api.github.com/users/Xandroid4Net/orgs","repos_url":"https://api.github.com/users/Xandroid4Net/repos","events_url":"https://api.github.com/users/Xandroid4Net/events{/privacy}","received_events_url":"https://api.github.com/users/Xandroid4Net/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T04:47:21Z","updated_at":"2016-05-18T04:47:21Z","closed_at":null,"body":"I know that the parameter is case sensitive, however is there a way to allow for insensitive? The constructor is marked internal so I cannot extend the object and override the method. I am forced to loop through the column names twice right now. Once to do the case insensitive search and then then I use the reader[\"columnname\"] this method will loop again. Or is there another way to accomplish this? The code I am using works fine with the sqlclient and the mono.data.sqlite implementation of the sqlitedatareader, but I would prefer to use this one if possible.\r\n\r\n/// <remarks>The <paramref name=\"name\" /> parameter is case sensitive.</remarks>\r\n        public override int GetOrdinal(string name)\r\n        {\r\n            for (var i = 0; i < FieldCount; i++)\r\n            {\r\n                if (GetName(i) == name)\r\n                {\r\n                    return i;\r\n                }\r\n            }\r\n\r\n            // NB: Message is provided by framework\r\n            throw new ArgumentOutOfRangeException(nameof(name), name, message: null);\r\n        }\r\n"}}