Entity Framework - Expecting non-empty string for 'providerInvariantName' parameter

前端 未结 2 1692
说谎
说谎 2021-02-07 07:18

Ok, this may not be related to EF. I am trying to use the code-first feature and following is what I wrote:-

var modelBuilder = new ModelBuilder();
            v         


        
2条回答
  •  伪装坚强ぢ
    2021-02-07 08:06

    You should add the System.Data.SqlClient as the value to a new attribute named "ProviderName". Just like below :-

    
    
        
        
        
    
    

提交回复
热议问题