1
How to convert a SQL
of SQL Server
for Entity Framework
, Ordering field values as follows:
of:
({'115-F-G', '10 -H-G ', '98 -T-R'})
for:
('10 -H-G ','98 -T-R','115-F-G')
SELECT * FROM ReportePedido Where PedidoId = 145
Order By TipoProducto,
CONVERT(INT, SUBSTRING(EnderecoEstoque, 0, CHARINDEX('-',EnderecoEstoque,1)))