c# - Mapping Stored Procedure Parameters to different Types -


i'm trying map insert/update stored procedures table in ef. 1 of column types (string) in stored procedure different column in table (geometry).

i have geometry column in table want populate in stored procedure passing string value.

stored procedure:

create procedure [dbo].[updateplace]      @globalid uniqueidentifier,     @shapestring varchar(max) = null     begin     set nocount on;      declare @shape geometry       set @shape = geometry::stgeomfromtext(@shapestring, 2193)      update [dbo].[place]     set [shape] = @shape     [globalid] = @globalid end 

so, possible map string geometry type , how?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -