{"action":"closed","issue":{"url":"https://api.github.com/repos/MoonStorm/Dapper.FastCRUD/issues/26","repository_url":"https://api.github.com/repos/MoonStorm/Dapper.FastCRUD","labels_url":"https://api.github.com/repos/MoonStorm/Dapper.FastCRUD/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/MoonStorm/Dapper.FastCRUD/issues/26/comments","events_url":"https://api.github.com/repos/MoonStorm/Dapper.FastCRUD/issues/26/events","html_url":"https://github.com/MoonStorm/Dapper.FastCRUD/issues/26","id":138201191,"number":26,"title":"Mapping a property without column name throws ArgumentNullException","user":{"login":"brainboost","id":1145520,"avatar_url":"https://avatars.githubusercontent.com/u/1145520?v=3","gravatar_id":"","url":"https://api.github.com/users/brainboost","html_url":"https://github.com/brainboost","followers_url":"https://api.github.com/users/brainboost/followers","following_url":"https://api.github.com/users/brainboost/following{/other_user}","gists_url":"https://api.github.com/users/brainboost/gists{/gist_id}","starred_url":"https://api.github.com/users/brainboost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainboost/subscriptions","organizations_url":"https://api.github.com/users/brainboost/orgs","repos_url":"https://api.github.com/users/brainboost/repos","events_url":"https://api.github.com/users/brainboost/events{/privacy}","received_events_url":"https://api.github.com/users/brainboost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-03-03T14:55:07Z","updated_at":"2016-06-28T02:08:25Z","closed_at":"2016-06-28T02:08:25Z","body":"When you map the property to the column with same name using SetProperty with one param like this: \r\n```\r\nOrmConfiguration.RegisterEntity<Category>()\r\n               .SetTableName(\"Category\")\r\n               .SetProperty(c => c.Code, prop => prop.SetPrimaryKey(true))\r\n               .SetProperty(c => c.Description); \r\n```\r\nProblem located in the EntityMapping.cs, line 197:\r\n   ```\r\nat Dapper.FastCrud.Validations.Requires.NotNull[T](T value, String parameterName)\r\n   at Dapper.FastCrud.Mappings.EntityMapping`1.SetProperty[TProperty](Expression`1 property, Action`1 propertySetupFct)    \r\n```"}}
{"actor":{"display_login":"MoonStorm"}}