title: Asp.Net Core 3.1 Seed data with conditionally
body: <p>I don't want to seed if the data exist in the <code>modelBuilder</code>. </p>
  
  <p>Here is I tried and seeded again with different <code>role ids</code> so my user with the roles has gone.</p>
  
  <pre><code>    protected override void OnModelCreating(ModelBuilder builder)
      {
          base.OnModelCreating(builder);
  
          builder.Entity&lt;IdentityRole&gt;().HasData(
              new IdentityRole { Name = "Admin", NormalizedName = "Admin".ToUpper() },
              new IdentityRole { Name = "PoUser", NormalizedName = "PoUser".ToUpper() },
              new IdentityRole { Name = "User", NormalizedName = "User".ToUpper() }
          );
  
      }
  </code></pre>
  
  <p>So how can I prevent data seeding with conditional rendering in Asp.Net Core 3.1 if data exist in the db ?</p>
  
  <p>Thanks </p>