DataReader.GetFieldType returned null

后端 未结 6 1706
北荒
北荒 2021-01-01 17:46

In my db table Layout, there\'s one column whose type is hierarchyid (column index=4). When trying to set-up new environment (a virtual web-server, created from

6条回答
  •  萌比男神i
    2021-01-01 18:07

    I tried to resolve this issue by adding the Microsoft.SqlServer.Types NuGet package to my project, but that alone did not help. I also had to add the following to the element of my project's App.config:

    
      
      .
      .
      .
        
          
          
        
      .
      .
      .
      
    
    

提交回复
热议问题