Base solution for your next web application
Open Closed

Add-Migration error #1601


User avatar
0
kythor created

Hi,

I followed the steps as described here <a class="postlink" href="https://aspnetzero.com/Documents/Developing-Step-By-Step-MPA#creating-person-entity">https://aspnetzero.com/Documents/Develo ... son-entity</a>

When trying to do Add-Migration I get an error.

this is the error:

No migrations configuration type was found in the assembly 'TIB.TIBtv.Tests'

In the tutorial, adding tests is after "Add-Migration", so what am I missing?


2 Answer(s)
  • User Avatar
    0
    kythor created

    stupid me, had to set default project to EntityFramework...

    but now I get this error:

    Unable to generate an explicit migration because the following explicit migrations are pending: [201501041229232_InitialCreate, 201501131916251_Added_IsStatic_To_Role, 201503011513570_ModuleZero_Upgrade_For_ISuspendable, 201503070820583_Converted_IsSuspended_To_IsActive, 201503111946269_Added_Tenant_Property_Annotations, 201503122019249_Tenant_Changed_To_FullAuditedEntity_From_AuditedEntity, 201503220907591_Added_ShouldChangePasswordOnNextLogin_To_AbpUser, 201503252020192_Added_AuditLog_To_AbpZero, 201503291617289_Added_Tenancy_Filters_To_Abp_Zero, 201504021549075_User_AndAuditLog_Data_Size_Changes, 201504051650417_AbpZero_Role_SoftDelete, 201504110952594_Added_StoredFile_Entity, 201504111928297_Renamed_StoredFile_To_BinaryObject, 201505011844158_UserLogin_Property_Restrictions, 201505011844467_Create_Indexes_For_Module_Zero_Tables, 201505162037045_Renamed_BinaryObject_Table, 201506061210411_Added_AuthenticationSource_To_User, 201506141245516_AuditLog_Made_MayHaveTenant, 201509080740102_ModuleZeroUpgrade_0_6_9, 201510060756191_Added_Edition_And_Features, 201510270717447_Added_ApplicationLanguage_Entit...]. Apply the pending explicit migrations before attempting to generate a new explicit migration.
    
  • User Avatar
    0
    kythor created

    never mind, you need an active connection to the database... :oops: :roll: