{"action":"created","issue":{"url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/issues/175","labels_url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/issues/175/comments","events_url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/issues/175/events","html_url":"https://github.com/BrightstarDB/BrightstarDB/issues/175","id":56479774,"number":175,"title":"Looking up entities with spaces in IDs fails in unexpected way","user":{"login":"kentcb","id":1901832,"avatar_url":"https://avatars.githubusercontent.com/u/1901832?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcb","html_url":"https://github.com/kentcb","followers_url":"https://api.github.com/users/kentcb/followers","following_url":"https://api.github.com/users/kentcb/following{/other_user}","gists_url":"https://api.github.com/users/kentcb/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcb/subscriptions","organizations_url":"https://api.github.com/users/kentcb/orgs","repos_url":"https://api.github.com/users/kentcb/repos","events_url":"https://api.github.com/users/kentcb/events{/privacy}","received_events_url":"https://api.github.com/users/kentcb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/milestones/14","labels_url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/milestones/14/labels","id":931572,"number":14,"title":"1.10","description":"","creator":{"login":"kal","id":70985,"avatar_url":"https://avatars.githubusercontent.com/u/70985?v=3","gravatar_id":"","url":"https://api.github.com/users/kal","html_url":"https://github.com/kal","followers_url":"https://api.github.com/users/kal/followers","following_url":"https://api.github.com/users/kal/following{/other_user}","gists_url":"https://api.github.com/users/kal/gists{/gist_id}","starred_url":"https://api.github.com/users/kal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kal/subscriptions","organizations_url":"https://api.github.com/users/kal/orgs","repos_url":"https://api.github.com/users/kal/repos","events_url":"https://api.github.com/users/kal/events{/privacy}","received_events_url":"https://api.github.com/users/kal/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":10,"state":"open","created_at":"2015-01-12T14:42:41Z","updated_at":"2015-02-16T12:18:04Z","due_on":"2015-03-02T00:00:00Z","closed_at":null},"comments":7,"created_at":"2015-02-04T04:47:05Z","updated_at":"2015-02-19T11:10:27Z","closed_at":null,"body":"Entities with spaces in their IDs save just fine, but attempting to find them fails:\r\n\r\n```C#\r\n[Entity]\r\npublic interface IEntity\r\n{\r\n    [Identifier]\r\n    string Id\r\n    {\r\n        get;\r\n    }\r\n}\r\n\r\nclass Program\r\n{\r\n    static void Main(string[] args)\r\n    {\r\n        var connectionString = \"type=embedded;storesdirectory=Stores;storename=Repro\";\r\n        var client = BrightstarService.GetClient(connectionString);\r\n\r\n        if (client.DoesStoreExist(\"Repro\"))\r\n        {\r\n            client.DeleteStore(\"Repro\");\r\n        }\r\n\r\n        // this works\r\n        string id = \"ref1\";\r\n\r\n        // this does not work\r\n        //string id = \"ref 1\";\r\n\r\n        using (var context = new MyEntityContext(connectionString))\r\n        {\r\n            context.Entities.Add(new Entity { Id = id });\r\n            context.SaveChanges();\r\n        }\r\n\r\n        using (var context = new MyEntityContext(connectionString))\r\n        {\r\n            var entity = context\r\n                .Entities\r\n                .Where(x => x.Id == id)\r\n                .FirstOrDefault();\r\n\r\n            Console.WriteLine(entity == null ? \"NOT FOUND\" : \"FOUND\");\r\n        }\r\n\r\n        Console.WriteLine(\"DONE\");\r\n        Console.ReadKey();\r\n    }\r\n}\r\n```\r\nThe entity is clearly present in the context and it has the correct ID, but the `Where` clause fails to find it if it contains a space."},"comment":{"url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/issues/comments/75035136","html_url":"https://github.com/BrightstarDB/BrightstarDB/issues/175#issuecomment-75035136","issue_url":"https://api.github.com/repos/BrightstarDB/BrightstarDB/issues/175","id":75035136,"user":{"login":"rvesse","id":2104864,"avatar_url":"https://avatars.githubusercontent.com/u/2104864?v=3","gravatar_id":"","url":"https://api.github.com/users/rvesse","html_url":"https://github.com/rvesse","followers_url":"https://api.github.com/users/rvesse/followers","following_url":"https://api.github.com/users/rvesse/following{/other_user}","gists_url":"https://api.github.com/users/rvesse/gists{/gist_id}","starred_url":"https://api.github.com/users/rvesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvesse/subscriptions","organizations_url":"https://api.github.com/users/rvesse/orgs","repos_url":"https://api.github.com/users/rvesse/repos","events_url":"https://api.github.com/users/rvesse/events{/privacy}","received_events_url":"https://api.github.com/users/rvesse/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T11:10:27Z","updated_at":"2015-02-19T11:10:27Z","body":"Yes also the behaviour changes depending on the version of the framework and how it is configured.  \r\n\r\nIRI parsing rules can be enabled for any .Net version from 2.0 onwards but are incomplete.  From .Net 4.5 onwards they obey the specs properly and are on by default"}}