Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can't change table name AbpTenantNotification #1872


User avatar
0
brallierc created

I am having an odd issue when I try to change or remove the prefix from this table using:

prefix = ""; modelBuilder.Entity<TenantNotification>().ToTable(prefix + "TenantNotifications");

I get the following error:

Value cannot be null. Parameter name: entitySet


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You should use TenantNotificationInfo instead of TenantNotification.

    If you want to completly remove/change Abp table prefix from all abp related tables, you can use modelBuilder.ChangeAbpTablePrefix method. See <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/165">https://github.com/aspnetboilerplate/mo ... issues/165</a>

  • User Avatar
    0
    brallierc created

    Thanks! that was the problem. I was using TenantNotification instead of TenantNotificationInfo.