C# Class Tailspin.Surveys.Data.DataStore.SqlServerSurveyStore

Inheritance: ISurveyStore
Mostra file Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps Class Usage Examples

Public Methods

Method Description
AddSurveyAsync ( Survey survey ) : Task
DeleteSurveyAsync ( Survey survey ) : Task
GetPublishedSurveysAsync ( int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
GetPublishedSurveysByOwnerAsync ( int userId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
GetPublishedSurveysByTenantAsync ( int tenantId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
GetSurveyAsync ( int id ) : Task
GetSurveysByContributorAsync ( int userId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
GetSurveysByOwnerAsync ( int userId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
GetUnPublishedSurveysByTenantAsync ( int tenantId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
PublishSurveyAsync ( int id ) : Task
SqlServerSurveyStore ( ApplicationDbContext dbContext ) : System
UnPublishSurveyAsync ( int id ) : Task
UpdateSurveyAsync ( Survey survey ) : Task

Method Details

AddSurveyAsync() public method

public AddSurveyAsync ( Survey survey ) : Task
survey Tailspin.Surveys.Data.DataModels.Survey
return Task

DeleteSurveyAsync() public method

public DeleteSurveyAsync ( Survey survey ) : Task
survey Tailspin.Surveys.Data.DataModels.Survey
return Task

GetPublishedSurveysAsync() public method

public GetPublishedSurveysAsync ( int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
pageIndex int
pageSize int
return Task>

GetPublishedSurveysByOwnerAsync() public method

public GetPublishedSurveysByOwnerAsync ( int userId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
userId int
pageIndex int
pageSize int
return Task>

GetPublishedSurveysByTenantAsync() public method

public GetPublishedSurveysByTenantAsync ( int tenantId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
tenantId int
pageIndex int
pageSize int
return Task>

GetSurveyAsync() public method

public GetSurveyAsync ( int id ) : Task
id int
return Task

GetSurveysByContributorAsync() public method

public GetSurveysByContributorAsync ( int userId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
userId int
pageIndex int
pageSize int
return Task>

GetSurveysByOwnerAsync() public method

public GetSurveysByOwnerAsync ( int userId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
userId int
pageIndex int
pageSize int
return Task>

GetUnPublishedSurveysByTenantAsync() public method

public GetUnPublishedSurveysByTenantAsync ( int tenantId, int pageIndex, int pageSize = Constants.DefaultPageSize ) : Task>
tenantId int
pageIndex int
pageSize int
return Task>

PublishSurveyAsync() public method

public PublishSurveyAsync ( int id ) : Task
id int
return Task

SqlServerSurveyStore() public method

public SqlServerSurveyStore ( ApplicationDbContext dbContext ) : System
dbContext Tailspin.Surveys.Data.DataModels.ApplicationDbContext
return System

UnPublishSurveyAsync() public method

public UnPublishSurveyAsync ( int id ) : Task
id int
return Task

UpdateSurveyAsync() public method

public UpdateSurveyAsync ( Survey survey ) : Task
survey Tailspin.Surveys.Data.DataModels.Survey
return Task