SQL から linq にクエリを変換する必要があります テーブル履歴の作成
CREATE TABLE [dbo].[History](
[HistoryID] [int] IDENTITY(1,1) NOT NULL,
[AuctionID] [int] NOT NULL,
[UserName] [nvarchar](128) NULL,
[Time] [datetime] NOT NULL,
[Price] [decimal](18, 2) NOT NULL,
)
クエリ
select [UserName],[Price] from [History]
where [Price] in
(SELECT [Price] FROM [History]
where ID=28 GROUP BY [Price]
HAVING COUNT(*)=1)
Order by [Price]