且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

存储过程中返回的地理位置列未在Entity Framework自动生成的复杂类型中显示

更新时间:2022-03-09 00:07:12

实体框架不会自动处理此问题,但是添加起来非常简单导入过程后的地理列。

Entity Framework won't handle this automatically, but it's pretty simple to add the geography column after the procedure is imported.


  1. 在模型中浏览器,搜索或导航到存储过程的复杂类型。右键单击,然后选择添加->标量属性->地理位置(或您缺少的任何其他类型):

  1. In the Model Browser, search or navigate to your stored procedure's complex type. Right-click, and select Add -> Scalar Property -> Geography (or any other type that you are missing):

输入列名:

保存模型。