LINQ to Entities string to decimal a column

前端 未结 2 909
别跟我提以往
别跟我提以往 2021-01-19 04:19

I have researched this question to death. Everyone and their brother wants to know how to convert an int or decimal to string, but I can\'t find any example of doing the op

2条回答
  •  轮回少年
    2021-01-19 04:56

    Have you tried model-defined functions?

    
         
         
              CAST(myStr AS Edm.Decimal(12, 2))
         
     
    

    Check this answer: Convert string to decimal in group join linq query

提交回复
热议问题