title: The type appear in two structurally incompatible initializations within a single LINQ to Entities query
body: <p>I am trying to get the record from multiple tables the last two tables have relation with so i make a join between them but first table has no relation with them but i need to get the data from it.
  This is my ViewModel</p>
  <pre><code> public class AssignTodoVM
  {
      public int TOdoPresetTeamID { get; set; }
      public int UserId { get; set; }
      public int TaskId { get; set; }       
      public string TaskName { get; set; }
      public DateTime CreatedDate { get; set; }
      public string userName { get; set; }
      public int? TeamId { get; set; }
     
  }
  </code></pre>
  <p>I wrote the following query and get the error.</p>
  <pre><code> var Tasks = (from c in _context.ToDoPresets
                       select new AssignTodoVM
                       {
                           TaskId = c.ToDoPresetID,
                           TaskName = c.Title,
                           TOdoPresetTeamID = c.ToDoPresetID,
                       }).Union(
                       from q in _context.AppTeamMembers
                       join s in _context.AppUsers
                       on q.AppUserID equals s.UserId
                       where q.IsManager == false
                       select new AssignTodoVM
                       {
  
                           CreatedDate = System.DateTime.Now,
  
                           UserId = s.UserId,
                           userName = s.UserName,
                           TeamId = q.AppTeamID
                       }).ToList();
  </code></pre>
  <p><a href="https://i.stack.imgur.com/HYsX5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HYsX5.png" alt="Error Screen" /></a></p>