DeepChecksDeepCheckRoleCreateOrUpdate Method

Checks if the new/edited role role can be added/updated to the database without conflicting with existing data.

Definition

Namespace: MobileTrack.DataContainers.Extensions
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static Task<List<ValidationModel>> DeepCheckRoleCreateOrUpdate(
	this IAzureCosmosDb cosmosDb,
	RoleDto role,
	CancellationToken cancellationToken = default
)

Parameters

cosmosDb  IAzureCosmosDb
Cosmos DB
role  RoleDto
role to check
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskListValidationModel
ValidationModel errors or an empty list if all is well.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAzureCosmosDb. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionThrown if role is

See Also