如何在 SQL 中为这段代码形成一个 Linq to sql 查询,我尝试了几件事。这是我的基本代码:
List<Movie> movies =
(from item in db.Movies select item).ToList<Movie>();
return movies;
这就是我想要的结果。
select (Won/Total) as 'rankPercentage'
from dbo.Filmranking
order by rankPercentage desc
谢谢