{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2727","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2727/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2727/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2727/events","html_url":"https://github.com/aspnet/EntityFramework/issues/2727","id":97630113,"number":2727,"title":"NotMappedAttribute still not work for complex type property in beta5","user":{"login":"heavenwing","id":2920062,"avatar_url":"https://avatars.githubusercontent.com/u/2920062?v=3","gravatar_id":"","url":"https://api.github.com/users/heavenwing","html_url":"https://github.com/heavenwing","followers_url":"https://api.github.com/users/heavenwing/followers","following_url":"https://api.github.com/users/heavenwing/following{/other_user}","gists_url":"https://api.github.com/users/heavenwing/gists{/gist_id}","starred_url":"https://api.github.com/users/heavenwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heavenwing/subscriptions","organizations_url":"https://api.github.com/users/heavenwing/orgs","repos_url":"https://api.github.com/users/heavenwing/repos","events_url":"https://api.github.com/users/heavenwing/events{/privacy}","received_events_url":"https://api.github.com/users/heavenwing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/pri0","name":"pri0","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"smitpatel","id":1528107,"avatar_url":"https://avatars.githubusercontent.com/u/1528107?v=3","gravatar_id":"","url":"https://api.github.com/users/smitpatel","html_url":"https://github.com/smitpatel","followers_url":"https://api.github.com/users/smitpatel/followers","following_url":"https://api.github.com/users/smitpatel/following{/other_user}","gists_url":"https://api.github.com/users/smitpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/smitpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smitpatel/subscriptions","organizations_url":"https://api.github.com/users/smitpatel/orgs","repos_url":"https://api.github.com/users/smitpatel/repos","events_url":"https://api.github.com/users/smitpatel/events{/privacy}","received_events_url":"https://api.github.com/users/smitpatel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/7","html_url":"https://github.com/aspnet/EntityFramework/milestones/7.0.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/7/labels","id":666128,"number":7,"title":"7.0.0","description":"","creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":211,"closed_issues":10,"state":"open","created_at":"2014-05-21T19:25:32Z","updated_at":"2015-07-29T18:53:22Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-07-28T06:52:02Z","updated_at":"2015-07-29T22:37:28Z","closed_at":null,"body":"I have below code:\r\n```\r\nclass Enterprise\r\n{\r\n    ...\r\n    [NotMapped]\r\n    public EnterpriseReceiptInfo ReceiptInfo { get; set; }\r\n    ...\r\n}\r\n```\r\nEnterpriseReceiptInfo is a complex type, and when ef create database model, it throw a exception to tell me that EnterpriseReceiptInfo must have a Key.\r\nSo, I add meta via fluent api in DbContext\r\n```\r\nmodelBuilder.Entity<Enterprise>().Ignore(t => t.ReceiptInfo);\r\n```\r\nThat is work."},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/126117288","html_url":"https://github.com/aspnet/EntityFramework/issues/2727#issuecomment-126117288","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2727","id":126117288,"user":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T22:37:28Z","updated_at":"2015-07-29T22:37:28Z","body":"@smitpatel feel free to close if you are confident this scenario now works"}}