阅读背景:

在同一个表上触发INSERT和UPDATE

来源:互联网 

as all of us know, entity framework can't hold geography data. So my idea was, to specify the longitude and latitude as decimal in my model. After executing the SQL script for creating the tables I would start another script for adding a geography column. Then I would like to update this column on every INSERT or UPDATE (on longitude and latitude) by a trigger. Is the following trigger okay, or is it something bad? I'm asking because I'm not very familiar with trigger, but it works for now.as all of us know, entity framework can't hold




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: