添加项目文件。
This commit is contained in:
18
TightWiki.Repository/Scripts/GetPageRevisionById.sql
Normal file
18
TightWiki.Repository/Scripts/GetPageRevisionById.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
SELECT
|
||||
P.Id,
|
||||
P.[Name],
|
||||
P.[Description],
|
||||
PR.Body,
|
||||
PR.Revision,
|
||||
P.Navigation,
|
||||
P.CreatedByUserId,
|
||||
P.CreatedDate,
|
||||
P.ModifiedByUserId,
|
||||
P.ModifiedDate
|
||||
FROM
|
||||
[Page] as P
|
||||
INNER JOIN [PageRevision] as PR
|
||||
ON PR.PageId = P.Id
|
||||
WHERE
|
||||
P.Id = @PageId
|
||||
AND PR.Revision = Coalesce(@Revision, P.Revision)
|
||||
Reference in New Issue
Block a user