{"action":"created","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1499","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1499/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1499/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1499/events","html_url":"https://github.com/volkanceylan/Serenity/issues/1499","id":191516885,"number":1499,"title":"Decimal and int values in entities not nullable","user":{"login":"Estrusco","id":16304015,"avatar_url":"https://avatars.githubusercontent.com/u/16304015?v=3","gravatar_id":"","url":"https://api.github.com/users/Estrusco","html_url":"https://github.com/Estrusco","followers_url":"https://api.github.com/users/Estrusco/followers","following_url":"https://api.github.com/users/Estrusco/following{/other_user}","gists_url":"https://api.github.com/users/Estrusco/gists{/gist_id}","starred_url":"https://api.github.com/users/Estrusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Estrusco/subscriptions","organizations_url":"https://api.github.com/users/Estrusco/orgs","repos_url":"https://api.github.com/users/Estrusco/repos","events_url":"https://api.github.com/users/Estrusco/events{/privacy}","received_events_url":"https://api.github.com/users/Estrusco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-24T13:11:17Z","updated_at":"2016-11-24T14:55:25Z","closed_at":null,"body":"Hi @volkanceylan !\r\nIs there any contraindication to making the decimal and int values in entities not nullable?\r\n\r\n```cs\r\n        [DisplayName(\"Decimal\"), Size(9), Scale(2), DefaultValue(0)]\r\n        public Decimal MyDecimal\r\n        {\r\n            get { return (decimal)Fields.MyDecimal[this]; }\r\n            set { Fields.MyDecimal[this] = value; }\r\n        }\r\n```\r\n\r\nI would like to do this to avoid casting in some arithmetic operations that involve decimal (or int) values.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/comments/262794055","html_url":"https://github.com/volkanceylan/Serenity/issues/1499#issuecomment-262794055","issue_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1499","id":262794055,"user":{"login":"Estrusco","id":16304015,"avatar_url":"https://avatars.githubusercontent.com/u/16304015?v=3","gravatar_id":"","url":"https://api.github.com/users/Estrusco","html_url":"https://github.com/Estrusco","followers_url":"https://api.github.com/users/Estrusco/followers","following_url":"https://api.github.com/users/Estrusco/following{/other_user}","gists_url":"https://api.github.com/users/Estrusco/gists{/gist_id}","starred_url":"https://api.github.com/users/Estrusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Estrusco/subscriptions","organizations_url":"https://api.github.com/users/Estrusco/orgs","repos_url":"https://api.github.com/users/Estrusco/repos","events_url":"https://api.github.com/users/Estrusco/events{/privacy}","received_events_url":"https://api.github.com/users/Estrusco/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T14:55:25Z","updated_at":"2016-11-24T14:55:25Z","body":"So, what do you recommend to avoid continuous cast to decimal? to decimal, an intermediate property in in the class that performs the calculations?\r\n"}}
{"actor":{"display_login":"Estrusco"}}