I need to crate Composite Key dynamically with anonymous type like follow.
modelBuilder.Entity<TEntity>().HasKey(**x => new { x.Property1, x.Property2}**);
I managed to crate dynamically for single key. But I've no idea how to crate for composite key. I've spent enough time on google for this solution, but I couldn't find one. Any help would appreciate.