Base solution for your next web application

Activities of "vincedc"

Answer

<cite>hikalkan: </cite>

So, all *.mydomain.com requests are redirected to the same app on iis. Then I get tenant name from URL.

I am sorry. Does your solution is implemented by using special route configuration? Or do you simply parse the url to extract the subdomain.

<cite>Omar: </cite> You should be able to change the name of your table during OnModelCreating. You can overwrite DataAnnotation of the table name . Code-First gives precedence to Fluent API > data annotations > default conventions.

protected override void OnModelCreating(DbModelBuilder modelBuilder)
       {
 
           modelBuilder.Entity<AuditLog>().ToTable("AuditLogs ");
                   
       }

How to handle the derived entities which actually are mapped with Table-per-type strategy? For example, in the default project

RolePermissionSetting

and

UserPermissionSetting

are both mapped to

AbpPermissions

table. How can we mapped these inheritance relationships?

Showing 1 to 2 of 2 entries