TreeEntityService<TTreeEntity>.IsParentOfAsync Method

检测两个记录是否具有父子关系。

Definition

Namespace: QuickAdmin.Service
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.2.8
C#
public virtual Task<bool> IsParentOfAsync(
	string childId,
	string parentId,
	bool idCaseSensitive = true
)

Parameters

childId  string
子记录 Id
parentId  string
父记录 Id
idCaseSensitive  bool  (Optional)
指示比较 Id 时是否区分大小写。

Return Value

Task<bool>
parentIdchildId 的父记录时,返回 true,否则返回 false

Implements

ITreeEntityService<TTreeEntity>.IsParentOfAsync(string, string, bool)

Exceptions

ArgumentNullExceptionchildId/parentIdnull 或空字符串。

See Also