title: Asp.Net Core : Get the value after siding in DbContext?
body: <p>I want to seed a default value in the database...These values ​​include a role and a user.
  How can I take the role value after seed and add it to the next seed which is adding the user?Is this possible or not?</p>
  <p>Seed Role :</p>
  <pre><code>modelBuilder.Entity&lt;Role&gt;().HasData(
              new Role { RoleId = Guid.NewGuid(), RoleName = &quot;User&quot; },
              new Role { RoleId = Guid.NewGuid(), RoleName = &quot;Admin&quot;}
          );
  </code></pre>
  <p>Seed User :</p>
  <pre><code> modelBuilder.Entity&lt;User&gt;().HasData(
              new User { UserId = 1,RoleId = ?}
              );
  </code></pre>
  <p>Actually I want to get the Admin role ID and add it to the RoleId field in the User table?</p>