Class BaseObjectListDAL<TList, TListType>
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Implements
IBaseObjectListDAL<TList, TListType>
Inherited Members
Namespace: Microsoft.GNS.Roster.DataAccess
Assembly: Microsoft.GNS.Roster.DataAccess.dll
Syntax
public class BaseObjectListDAL<TList, TListType> : IBaseObjectListDAL<TList, TListType> where TList : class, IObjectRefList<TListType>
Type Parameters
Name | Description |
---|---|
TList | |
TListType |
Constructors
View SourceBaseObjectListDAL(IDocumentStore)
Initializes a new instance of the BaseObjectListDAL<TList, TListType> class.
Declaration
public BaseObjectListDAL(IDocumentStore docStore)
Parameters
Type | Name | Description |
---|---|---|
IDocumentStore | docStore |
Methods
View SourceDeleteObjectListsForParentAsync(Guid, string, Scope)
Deletes object lists for a given parent.
Declaration
public Task DeleteObjectListsForParentAsync(Guid parentId, string listContainerName, Scope scope)
Parameters
Type | Name | Description |
---|---|---|
Guid | parentId | The parent object Id in which to delete object lists. |
string | listContainerName | The list type container. |
Scope | scope | The scope of the object list parent. |
Returns
Type | Description |
---|---|
Task | A task representing the work to delete an object list. |
GetObjectListAsync(Guid, string, string, Scope)
Gets an object list.
Declaration
public Task<TList?> GetObjectListAsync(Guid parentId, string name, string listContainerName, Scope scope)
Parameters
Type | Name | Description |
---|---|---|
Guid | parentId | The Id of the parent this list belongs to. |
string | name | The property name of the list in the parent object. |
string | listContainerName | The list type container. |
Scope | scope | The Roster scope. |
Returns
Type | Description |
---|---|
Task<TList> | An object that represents a permission entity list. |
SaveObjectListAsync(TList)
Saves an object list.
Declaration
public Task<TList> SaveObjectListAsync(TList list)
Parameters
Type | Name | Description |
---|---|---|
TList | list | The list to save. |
Returns
Type | Description |
---|---|
Task<TList> | The saved list. |