I have 100 tables with the same schema. What is the best solution with Fluent NHibernate for this situation? I mean what mapping(s) I should create? Thanks in advance! See pict.:
PS. Every table contains a really huge amount of data.
I have 100 tables with the same schema. What is the best solution with Fluent NHibernate for this situation? I mean what mapping(s) I should create? Thanks in advance! See pict.:
PS. Every table contains a really huge amount of data.
If you ONLY want to map all the tables for reading purposes, you can do it creating an SQL view that performs a UNION ALL
query over all your tables.
Then, just map your SQL view as you map a single table.
Take a look into this answer for a previous question (and similar too).