{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6027","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6027/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6027/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6027/events","html_url":"https://github.com/aspnet/EntityFramework/issues/6027","id":164571365,"number":6027,"title":"Composite keys causes crash in releasemode [UWP]","user":{"login":"ViktorBergman","id":1710259,"avatar_url":"https://avatars.githubusercontent.com/u/1710259?v=3","gravatar_id":"","url":"https://api.github.com/users/ViktorBergman","html_url":"https://github.com/ViktorBergman","followers_url":"https://api.github.com/users/ViktorBergman/followers","following_url":"https://api.github.com/users/ViktorBergman/following{/other_user}","gists_url":"https://api.github.com/users/ViktorBergman/gists{/gist_id}","starred_url":"https://api.github.com/users/ViktorBergman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViktorBergman/subscriptions","organizations_url":"https://api.github.com/users/ViktorBergman/orgs","repos_url":"https://api.github.com/users/ViktorBergman/repos","events_url":"https://api.github.com/users/ViktorBergman/events{/privacy}","received_events_url":"https://api.github.com/users/ViktorBergman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/closed-duplicate","name":"closed-duplicate","color":"777777"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-bug","name":"type-bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-investigation","name":"type-investigation","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"assignees":[{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/19","html_url":"https://github.com/aspnet/EntityFramework/milestones/1.1.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/19/labels","id":1748298,"number":19,"title":"1.1.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":115,"closed_issues":183,"state":"open","created_at":"2016-05-04T18:23:47Z","updated_at":"2016-09-08T19:23:50Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-07-08T16:49:08Z","updated_at":"2016-09-09T13:35:12Z","closed_at":"2016-08-05T18:28:13Z","body":"### Steps to reproduce\r\nThe following fluent mapping causes my UWP app to crash when in release mode and compiled with .Net Native.\r\n\r\n`modelBuilder.Entity<OrderLine>().HasKey(x => new { x.OrderGuid, x.LineNo });`\r\n\r\n### The issue\r\nApplication crashes when the datacontext is configuring its model.\r\nWorks perfectly fine in debug mode.\r\n\r\n```\r\nAccess violation reading location 0x00000001.\r\n\r\n \t[External Code]\t\r\n \tMicrosoft.EntityFrameworkCore.dll!System.SharedTypeExtensions.GetGenericTypeImplementations(System.Type type, System.Type interfaceOrBaseType)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!System.SharedTypeExtensions.TryGetElementType(System.Type type, System.Type interfaceOrBaseType)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!System.SharedTypeExtensions.TryGetSequenceType(System.Type type)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.Navigation.IsCompatible(System.Reflection.PropertyInfo navigationProperty, System.Type sourceClrType, System.Type targetClrType, bool? shouldBeCollection, bool shouldThrow)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.IsCompatible(System.Reflection.PropertyInfo navigationProperty, bool pointsToPrincipal, System.Type dependentType, System.Type principalType, bool shouldThrow, out bool? shouldBeUnique)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.CanSetNavigations(Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToDependent, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? configurationSource, bool shouldThrow, bool overrideSameSource, out bool? shouldInvert, out bool? shouldBeUnique, out bool removeOppositeNavigation)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.Navigations(Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToDependent, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? configurationSource, bool runConventions)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.ReplaceForeignKey(Microsoft.EntityFrameworkCore.Metadata.Internal.InternalEntityTypeBuilder principalEntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalEntityTypeBuilder dependentEntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToDependent, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.Internal.Property> dependentProperties, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.Internal.Property> principalProperties, bool? isUnique, bool? isRequired, Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior? deleteBehavior, bool oldRelationshipInverted, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? principalEndConfigurationSource, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? configurationSource, bool runConventions)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.ReplaceForeignKey(Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? configurationSource, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalEntityTypeBuilder principalEntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Internal.InternalEntityTypeBuilder dependentEntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToDependent, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.Internal.Property> dependentProperties, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.Internal.Property> principalProperties, bool? isUnique, bool? isRequired, Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior? deleteBehavior, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? principalEndConfigurationSource, bool oldRelationshipInverted, bool runConventions)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.Navigations(Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToDependent, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? configurationSource, bool runConventions)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.Navigations(Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity? navigationToDependent, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource? configurationSource)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder.DependentToPrincipal(System.Reflection.PropertyInfo property, Microsoft.EntityFrameworkCore.Metadata.Internal.ConfigurationSource configurationSource)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder.WithOneBuilder(Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyIdentity reference)\tUnknown\r\n \tMicrosoft.EntityFrameworkCore.dll!Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionNavigationBuilder<object,object>.WithOne(System.Linq.Expressions.Expression<System.Func<object,object>> navigationExpression)\tUnknown\r\n>\tFuture.Clients.Universal.Core.dll!Future.Clients.Universal.Services.Core.Data.OnFieldContext.ConfigureOrders(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder) Line 338\tC#\r\n \tFuture.Clients.Universal.Core.dll!Future.Clients.Universal.Services.Core.Data.OnFieldContext.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder) Line 112\tC#\r\n \t[External Code]\t\r\n \tFuture.Clients.Universal.Core.dll!Future.Clients.Universal.Services.Core.Data.SqliteDataService.InitializeAsync() Line 66\tC#\r\n \t[Resuming Async Method]\t\r\n \t[External Code]\t\r\n\r\n```\r\n\r\n### Further technical details\r\n\r\n\r\nInstalled packages:\r\n\r\nMicrosoft.Data.Sqlite 1.0.0\r\nMicrosoft.EntityFrameworkCore.Sqlite 1.0.0\r\nMicrosoft.NETCore.UniversalWindowsPlatform 5.2.0\r\nUWP Tools : 1.4\r\nVisual Studio 2015 Update 3\r\n\r\nOperating system: Windows 10 14383"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/245914478","html_url":"https://github.com/aspnet/EntityFramework/issues/6027#issuecomment-245914478","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/6027","id":245914478,"user":{"login":"jspuij","id":985974,"avatar_url":"https://avatars.githubusercontent.com/u/985974?v=3","gravatar_id":"","url":"https://api.github.com/users/jspuij","html_url":"https://github.com/jspuij","followers_url":"https://api.github.com/users/jspuij/followers","following_url":"https://api.github.com/users/jspuij/following{/other_user}","gists_url":"https://api.github.com/users/jspuij/gists{/gist_id}","starred_url":"https://api.github.com/users/jspuij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jspuij/subscriptions","organizations_url":"https://api.github.com/users/jspuij/orgs","repos_url":"https://api.github.com/users/jspuij/repos","events_url":"https://api.github.com/users/jspuij/events{/privacy}","received_events_url":"https://api.github.com/users/jspuij/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T13:35:12Z","updated_at":"2016-09-09T13:35:12Z","body":"@ErikEJ That would be an option too. However writing thousands of lines of boilerplate code because of .NET native issues does not seem like a very attractive proposition. I'm going to try and add some runtime directives to my app for IEnumerable<T> because it looks like automapper reflects on the \"Current\" Property of IEnumerable and it does not seem to be available when `<UseDotNetNativeSharedAssemblyFrameworkPackage>false</UseDotNetNativeSharedAssemblyFrameworkPackage>`\r\nis added to the project file."}}
{"actor":{"display_login":"jspuij"}}