C# Class AzureLens.Database.DAL

Mostra file Open project: MicrosoftDX/AzureLens

Private Properties

Property Type Description
DAL System

Public Methods

Method 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

Method Description
DAL ( ) : System

Method Details

DeleteDiagramAsync() static public method

static public DeleteDiagramAsync ( string diagramId ) : Task
diagramId string
return Task

GenerateHashAsync() public static method

public static GenerateHashAsync ( System.Guid diagramId ) : Task
diagramId System.Guid
return Task

GetIdFromHashAsync() public static method

public static GetIdFromHashAsync ( string hash ) : Task
hash string
return Task

GetUserDiagramsAsync() static public method

static public GetUserDiagramsAsync ( string userId ) : Task>
userId string
return Task>

InsertDiagramAsync() static public method

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
return Task

LoadDiagram() static public method

static public LoadDiagram ( System.Guid diagramId ) : Task
diagramId System.Guid
return Task

UpdateDiagramAsync() static public method

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
return Task