i am using SQL Dapper and i want to pass parameter like DATEADD(yy, DATEDIFF(yy,0,getdate()) + 1, -1) from UI. how can i do this?
DynamicParameter takes key as string and value as object and i am passing the key as the parameter i specified in the query and value as the expressing that i get from ui and here is the error what i get Conversion failed when converting date and/or time from character string.
--Need Help.