Response.Clear()
TSQLに ASP.NET に相当するものはありますか?
ある条件で、以前に選択したバッファから結果セットを削除する必要があります。
編集:
update [ViewCounts] set [SiteViews] += 1 OUTPUT INSERTED.SiteViews
where [PageID] = @PageID AND [LastIP] <> @IP
IF @@ROWCOUNT = 0
BEGIN
--- Need to clear the the empty (OUTPUT INSERTED.SiteViews) buffer here, as it crashes the Entity Framework
select [SiteViews] from [ViewCounts] where [PageID] = @PageID
END