Configure a non-shadow principal key for this relationship
<p>I'm trying to build by database using Code first Entity framework, within a ASP Core 1, RC2 projects. </p>

<p>And I get this error message:</p>

<blockquote>
  <p>The key {'TempId'} contains properties in shadow state and is referenced by a relationship from 'TaskStatus' to 'TaskRunner.IsRunning'. Configure a non-shadow principal key for this relationship.</p>
</blockquote>

<p>Any one have a idea on what this error means?</p>

<p>Note that I don't have ny column name tempId. I guest that EF7 build this column for itself.</p>

<p>Here is my entity</p>

<pre><code> public class TaskStatus
 {
        public Guid TaskConfigId { get; set; }
        public string LastResultValue { get; set; }
        public int RetryCount { get; set; }
        public TaskStatusEnum StatusEnum { get; set; }
        public DateTimeOffset LastUpdate { get; set; }
        public TaskResult TaskResult { get; set; }
        public TaskStatusEnum TaskStatusEnum { get; set; }
}

public class TaskRunner
{
    public DateTimeOffset RunAt { get; set; }
    public TaskConfig TaskConfig { get; set; }
    public Guid TaskConfigId { get; set; }
    public TaskStatus IsRunning { get; set; }
}
</code></pre>