-1

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.:

enter image description here

PS. Every table contains a really huge amount of data.

Alexandr
  • 695
  • 2
  • 9
  • 18

1 Answers1

1

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).

Community
  • 1
  • 1
HuorSwords
  • 2,225
  • 1
  • 21
  • 34