更新时间: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.
在模型中浏览器,搜索或导航到存储过程的复杂类型。右键单击,然后选择添加->标量属性->地理位置(或您缺少的任何其他类型):
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):
输入列名:
保存模型。