C# Class AzureLens.Database.DAL

Afficher le fichier Open project: MicrosoftDX/AzureLens

Private Properties

Свойство Type Description
DAL System

Méthodes publiques

Méthode Description
DeleteDiagramAsync ( string diagramId ) : Task
GenerateHashAsync ( System.Guid diagramId ) : Task
GetIdFromHashAsync ( string hash ) : Task
GetUserDiagramsAsync ( string userId ) : Task>

InsertDiagramAsync ( string diagram ) : Task

Inserts a new diagram into the Diagrams collection NOTE: the Diagram JSON must not have the id attribute or an exception will occur

LoadDiagram ( System.Guid diagramId ) : Task
UpdateDiagramAsync ( string diagram ) : Task

Updates an existing diagram in the Diagrams collection NOTE: the Diagram JSON must have the id attribute or an exception will occur

Private Methods

Méthode Description
DAL ( ) : System

Method Details

DeleteDiagramAsync() static public méthode

static public DeleteDiagramAsync ( string diagramId ) : Task
diagramId string
Résultat Task

GenerateHashAsync() public static méthode

public static GenerateHashAsync ( System.Guid diagramId ) : Task
diagramId System.Guid
Résultat Task

GetIdFromHashAsync() public static méthode

public static GetIdFromHashAsync ( string hash ) : Task
hash string
Résultat Task

GetUserDiagramsAsync() static public méthode

static public GetUserDiagramsAsync ( string userId ) : Task>
userId string
Résultat Task>

InsertDiagramAsync() static public méthode

Inserts a new diagram into the Diagrams collection NOTE: the Diagram JSON must not have the id attribute or an exception will occur
static public InsertDiagramAsync ( string diagram ) : Task
diagram string
Résultat Task

LoadDiagram() static public méthode

static public LoadDiagram ( System.Guid diagramId ) : Task
diagramId System.Guid
Résultat Task

UpdateDiagramAsync() static public méthode

Updates an existing diagram in the Diagrams collection NOTE: the Diagram JSON must have the id attribute or an exception will occur
static public UpdateDiagramAsync ( string diagram ) : Task
diagram string
Résultat Task