{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5757","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5757/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5757/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/5757/events","html_url":"https://github.com/aspnet/EntityFramework/issues/5757","id":160234262,"number":5757,"title":"The ChangeTracker doesn't track changes when the change is performed inside a NotMapped property","user":{"login":"soycabanillas","id":3492502,"avatar_url":"https://avatars.githubusercontent.com/u/3492502?v=3","gravatar_id":"","url":"https://api.github.com/users/soycabanillas","html_url":"https://github.com/soycabanillas","followers_url":"https://api.github.com/users/soycabanillas/followers","following_url":"https://api.github.com/users/soycabanillas/following{/other_user}","gists_url":"https://api.github.com/users/soycabanillas/gists{/gist_id}","starred_url":"https://api.github.com/users/soycabanillas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soycabanillas/subscriptions","organizations_url":"https://api.github.com/users/soycabanillas/orgs","repos_url":"https://api.github.com/users/soycabanillas/repos","events_url":"https://api.github.com/users/soycabanillas/events{/privacy}","received_events_url":"https://api.github.com/users/soycabanillas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-14T17:07:41Z","updated_at":"2016-06-14T17:07:41Z","closed_at":null,"body":"When changes to an entity are done on a [NotMapped] property that changes a mapped property, the change tracker let the state Unmodified to the entity (i.e. Data property modifies Serialized). The behaviour is as expected when the property Serialized is changed directly.\r\n\r\n    public class EntitySample : EntityBase\r\n    {\r\n        public string Serialized { get; set; }\r\n        \r\n        public class TData\r\n        {\r\n            public string Description { get; set; }\r\n            public string MerchantCode { get; set; }\r\n            public string LastOrder { get; set; }\r\n        }\r\n\r\n        [NotMapped]\r\n        public TData Data\r\n        {\r\n            get { return JsonConvert.DeserializeObject<TData>(Serialized); }\r\n            set { Serialized = JsonConvert.SerializeObject(value); }\r\n        }\r\n    }\r\n\r\nUsing:\r\nASP.NET Core RC2\r\nEF Core version: 1.0.0-rc2-final\r\nOperating system: Windows 10\r\nVisual Studio version: VS2015\r\n"}}
{"actor":{"display_login":"soycabanillas"}}