I want to retrieve multiple records by giving array of primary key and I have to make generic method of it for all the entities.
private DbSet
You can have different names in your application model and your database model. You will have to map your Model Ids to the name in database:
In your Mapping you will have something similar to this for every entity: this.Property(t => t.Id).HasColumnName("ProductId");