title: Assigning one Table ID to another Table ID Like Asp.Net Identity AspNetUserRole
body: <p>Hi i have 3 model class setup <code>Group</code></p>
  
  <pre><code>Public Class Group
      Public Property Id As Long
      Public Property Name As String
      Public Property CoverImgUrl As String
      Public Overridable ReadOnly Property Profile() As ICollection(Of Profile)
          Get
  
          End Get
  
      End Property
  End Class
  </code></pre>
  
  <p><code>Profile</code></p>
  
  <pre><code>Public Class Profile
      Public Property Id As Long
      &lt;Required&gt;
      &lt;MaxLength(20)&gt;
      &lt;Display(Name:="First Name")&gt;
      Public Property FirstName As String
      &lt;Required&gt;
      &lt;MaxLength(20)&gt;
      &lt;Display(Name:="Last Name")&gt;
      Public Property LastName As String
   Public Overridable ReadOnly Property Group() As ICollection(Of Group)
          Get
  
          End Get
  
      End Property
  </code></pre>
  
  <p>and  <code>GroupMembers</code>.</p>
  
  <pre><code>Public Class GroupMembers
      Public Sub New()
      End Sub
      Public Overridable Property Group() As Group
      Public Overridable Property GroupId() As String
      Public Overridable Property Profile() As Profile
      Public Overridable Property ProfileId() As String
  End Class
  </code></pre>
  
  <p>i ran the <code>Update-Database</code> command which updated my database and created a table <code>ProfileGroup</code> like asp.net <code>AspNetUserRole</code>. </p>
  
  <p><img src="https://i.stack.imgur.com/iohmK.png" alt="enter image description here"></p>
  
  <p>With the progress so far how can i assign one group to a profile i created like asp.net uses the <code>UserManager.AddToRole</code> method to assign a user to a role or any global best practice to this. Thanks</p>