C# 클래스 Rock.Model.SiteService

The data access/service class for the Rock.Model.Site entity. This inherits from the Service class
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
CanDelete ( Site item, string &errorMessage, bool includeSecondLvl ) : bool

Determines whether the specified site can be deleted. Performs some additional checks that are missing from the auto-generated SiteService.CanDelete(). TODO This should move into the SiteService CanDelete at some point once the generator tool is adjusted.

GetByDefaultPageId ( int defaultPageId ) : IQueryable

Returns a collection of Rock.Model.Site entities that by their Default Page's PageId.

GetGuid ( int id ) : Guid?

Gets the Guid for the Site that has the specified Id

메소드 상세

CanDelete() 공개 메소드

Determines whether the specified site can be deleted. Performs some additional checks that are missing from the auto-generated SiteService.CanDelete(). TODO This should move into the SiteService CanDelete at some point once the generator tool is adjusted.
public CanDelete ( Site item, string &errorMessage, bool includeSecondLvl ) : bool
item Site The item.
errorMessage string The error message.
includeSecondLvl bool If set to true, verifies that there are no site layouts with any existing pages.
리턴 bool

GetByDefaultPageId() 공개 메소드

Returns a collection of Rock.Model.Site entities that by their Default Page's PageId.
public GetByDefaultPageId ( int defaultPageId ) : IQueryable
defaultPageId int An containing the Id of the default to search by. This /// value is nullable.
리턴 IQueryable

GetGuid() 공개 메소드

Gets the Guid for the Site that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
리턴 Guid?