[x] Need to refactor EntityType flags enum to make space for the Tenant itself as a known entity type (so Address can reference it)
This means renumbering existing ones unfortunately
[x] Add necessary stuff to hydrate Tenant details
May or may make Tenant listing response have fewer details than getting a single Tenant.
If single Tenant details contains stuff listing does not, UI would be required to make a separate call to get Tenant details after Tenant selection (or upon default Tenant selection if there is only one).
[x] Data Access Layer - Tenant Repository
Because of the silly Entity stuff, it is not able to use EF to navigate to the Mailing Address. Need to rewrite the queries using Dapper. Sigh.
[x] Invoice Business Logic - add Tenant Repository and fetch Tenant when fetching Invoice details
[x] Invoice Razor Template should be refactored to use data-driven Tenant mailing address and email address
EntityType
flags enum to make space for the Tenant itself as a known entity type (soAddress
can reference it)