Show / Hide Table of Contents

Class BaseObjectListDAL<TList, TListType>

The base DAL for security/object lists.

Inheritance
System.Object
BaseObjectListDAL<TList, TListType>
Implements
IBaseObjectListDAL<TList, TListType>
Namespace: Microsoft.GNS.Roster.DataAccess
Assembly: Microsoft.GNS.Roster.DataAccess.dll
Syntax
public class BaseObjectListDAL<TList, TListType> : object, IBaseObjectListDAL<TList, TListType> where TList : class, IObjectRefList<TListType>
Type Parameters
Name Description
TList
TListType

Constructors

View Source

BaseObjectListDAL(IDocumentStore)

Initializes a new instance of the BaseObjectListDAL<TList, TListType> class.

Declaration
public BaseObjectListDAL(IDocumentStore docStore)
Parameters
Type Name Description
IDocumentStore docStore

IDocumentStore.

Methods

View Source

DeleteObjectListsForParentAsync(Guid, String, Scope)

Deletes object lists for a given parent.

Declaration
public async Task DeleteObjectListsForParentAsync(Guid parentId, string listContainerName, Scope scope)
Parameters
Type Name Description
Guid parentId

The parent object Id in which to delete object lists.

System.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.

View Source

GetObjectListAsync(Guid, String, String, Scope)

Gets an object list.

Declaration
public async 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.

System.String name

The property name of the list in the parent object.

System.String listContainerName

The list type container.

Scope scope

The Roster scope.

Returns
Type Description
Task<TList>

An object that represents a permission entity list.

View Source

SaveObjectListAsync(TList)

Saves an object list.

Declaration
public async Task<TList> SaveObjectListAsync(TList list)
Parameters
Type Name Description
TList list

The list to save.

Returns
Type Description
Task<TList>

The saved list.

Implements

IBaseObjectListDAL<TList, TListType>
  • View Source
In This Article
Back to top Generated by DocFX