Abp project error Microsoft.Data.SqlClient.SqlException (0x80131904)

1. Abp warehouse query error report

 2. Know the reason for the error, it is the lack of two attributes. So where do these two properties come from?

 Since the entity inherits the AggregateRoot aggregate root, the Abp framework will automatically add these two attributes for us to achieve optimistic concurrency locks. So first check whether the data table generated before is missing these two attributes. If it is missing, re-execute Add-Migration, or delete the original table and re-execute Add-Migration, and then execute Update-database to update the database. 

2.1 Execute Add-Migration xxx to choose the migration name at will, as long as it does not duplicate the name of the existing migration file

 

 2.2 When executing Update-database to update to the database, if Done is displayed, it proves that the update is successful

2.3 View the table generated by the corresponding entity, the field has been successfully generated

 

 

 

Guess you like

Origin blog.csdn.net/weixin_39237340/article/details/126291968