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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -