Свойство | Тип | Описание | |
---|---|---|---|
SharedResourceFile | string |
Метод | Описание | |
---|---|---|
CreateAnswer ( int userId ) : |
Creates a new Answer instance, to be persisted when SubmitChanges is called.
|
|
CreateQuestion ( int userId ) : |
Creates a new Question instance, to be persisted when SubmitChanges is called.
|
|
CreateResponse ( int responseHeaderId, int userId ) : |
Creates a new Response instance, to be persisted when SubmitChanges is called.
|
|
CreateResponseHeader ( int userId ) : |
Creates a new ResponseHeader instance, to be persisted when SubmitChanges is called.
|
|
CreateSurvey ( int userId, int portalId, int moduleId ) : |
Creates a new Survey instance, to be persisted when SubmitChanges is called.
|
|
DeleteAnswers ( IEnumerable |
Deletes the specified answers.
|
|
DeleteQuestion ( int questionId ) : void |
Deletes the specified question.
|
|
DeleteReadOnlySurvey ( int responseHeaderId ) : void |
Deletes the specified completed survey ResponseHeader and responses.
|
|
DeleteSurvey ( int surveyId, int moduleId ) : void |
Deletes the specified survey.
|
|
GetModuleIdForQuestion ( int questionId ) : int |
Gets the ID of the module that the given question belongs to.
|
|
GetModuleIdForSurvey ( int surveyId ) : int |
Gets the ID of the module that the given survey belongs to.
|
|
LoadAnswerResponseCounts ( int surveyId ) : IQueryable |
Loads all of the questions, their answers, and the number of responses per answer for the given survey
|
|
LoadQuestions ( int surveyId ) : IQueryable |
Loads all of the questions for the given survey (based on its current definition)
|
|
LoadReadOnlyAnswers ( int responseHeaderId, int questionId ) : IQueryable |
Loads the completed answers for a given completed question.
|
|
LoadReadOnlyQuestion ( int responseHeaderId, int questionId ) : IQuestion |
Loads the given completed question.
|
|
LoadReadOnlyQuestions ( int responseHeaderId, int sectionId ) : IQueryable |
Loads the completed questions for a given completed section.
|
|
LoadReadOnlySection ( int responseHeaderId, int sectionId ) : |
Loads the given completed section.
|
|
LoadReadOnlySections ( int responseHeaderId, int surveyId ) : IQueryable |
Loads the completed sections for a given completed survey.
|
|
LoadReadOnlySurvey ( int responseHeaderId, int moduleId ) : |
Loads a completed survey using the ResponseHeader ID for the User/Survey.
|
|
LoadResponses ( int surveyId ) : Response>>.IQueryable |
Gets the responses for the given survey.
|
|
LoadSurvey ( int surveyId ) : |
Loads the survey.
|
|
LoadSurvey ( int surveyId, int moduleId ) : |
Loads the survey for the given module.
|
|
LoadSurveys ( int moduleId, bool getOutdatedSurveys ) : IQueryable |
Loads all the surveys for a particular module instance.
|
|
LoadSurveysForPortal ( int portalId ) : IQueryable |
Loads all the surveys for a particular portal instance.
|
|
SubmitChanges ( ) : void |
Submits all changes for connected instances to the database.
|
|
SurveyRepository ( ) : System |
Initializes a new instance of the SurveyRepository class.
|
|
UserHasTaken ( int userId, int surveyId ) : bool |
Checks the database to determine if a user has taken the specified survey.
|
Метод | Описание | |
---|---|---|
SurveyRepository ( |
Initializes a new instance of the SurveyRepository class.
|
Метод | Описание | |
---|---|---|
LoadReadOnlySurveys ( ) : IQueryable |
Loads all completed surveys.
|
public CreateAnswer ( int userId ) : |
||
userId | int | The ID of the user creating the instance. |
Результат |
public CreateQuestion ( int userId ) : |
||
userId | int | The ID of the user creating the instance. |
Результат |
public CreateResponse ( int responseHeaderId, int userId ) : |
||
responseHeaderId | int | The ID of the |
userId | int | The ID of the user creating the instance. |
Результат |
public CreateResponseHeader ( int userId ) : |
||
userId | int | The ID of the user creating the instance. |
Результат |
public CreateSurvey ( int userId, int portalId, int moduleId ) : |
||
userId | int | The ID of the user creating the instance. |
portalId | int | The ID of the survey's portal. |
moduleId | int | The ID of the module that owns the survey. |
Результат |
public DeleteAnswers ( IEnumerable |
||
answers | IEnumerable |
The answers to delete. |
pendForNextSubmit | bool |
/// if set to |
Результат | void |
public DeleteQuestion ( int questionId ) : void | ||
questionId | int | The ID of the question. |
Результат | void |
public DeleteReadOnlySurvey ( int responseHeaderId ) : void | ||
responseHeaderId | int | The |
Результат | void |
public DeleteSurvey ( int surveyId, int moduleId ) : void | ||
surveyId | int | The ID of the survey to delete. |
moduleId | int | The ID of the module in which to find the survey. |
Результат | void |
public GetModuleIdForQuestion ( int questionId ) : int | ||
questionId | int | The question's ID. |
Результат | int |
public GetModuleIdForSurvey ( int surveyId ) : int | ||
surveyId | int | The survey's ID. |
Результат | int |
public LoadAnswerResponseCounts ( int surveyId ) : IQueryable |
||
surveyId | int | The ID of the survey. |
Результат | IQueryable |
public LoadQuestions ( int surveyId ) : IQueryable |
||
surveyId | int | The ID of the survey. |
Результат | IQueryable |
public LoadReadOnlyAnswers ( int responseHeaderId, int questionId ) : IQueryable |
||
responseHeaderId | int | The ID of the |
questionId | int | The ID of the question. |
Результат | IQueryable |
public LoadReadOnlyQuestion ( int responseHeaderId, int questionId ) : IQuestion | ||
responseHeaderId | int | The ID of the |
questionId | int | The ID of the question. |
Результат | IQuestion |
public LoadReadOnlyQuestions ( int responseHeaderId, int sectionId ) : IQueryable |
||
responseHeaderId | int | The ID of the |
sectionId | int | The ID of the section. |
Результат | IQueryable |
public LoadReadOnlySection ( int responseHeaderId, int sectionId ) : |
||
responseHeaderId | int | The ID of the |
sectionId | int | The ID of the section. |
Результат |
public LoadReadOnlySections ( int responseHeaderId, int surveyId ) : IQueryable |
||
responseHeaderId | int | The ID of the |
surveyId | int | The ID of the survey. |
Результат | IQueryable |
public LoadReadOnlySurvey ( int responseHeaderId, int moduleId ) : |
||
responseHeaderId | int | The |
moduleId | int | The module ID. |
Результат |
public LoadResponses ( int surveyId ) : Response>>.IQueryable |
||
surveyId | int | The ID of the survey for which to get responses. |
Результат | Response>>.IQueryable |
public LoadSurvey ( int surveyId ) : |
||
surveyId | int | The survey id. |
Результат |
public LoadSurvey ( int surveyId, int moduleId ) : |
||
surveyId | int | The survey ID. |
moduleId | int | The module ID. |
Результат |
public LoadSurveys ( int moduleId, bool getOutdatedSurveys ) : IQueryable |
||
moduleId | int | The ID of the module by which surveys should be filtered. |
getOutdatedSurveys | bool | Whether to retrieve surveys whose |
Результат | IQueryable |
public LoadSurveysForPortal ( int portalId ) : IQueryable |
||
portalId | int | The ID of the portal by which surveys should be filtered. |
Результат | IQueryable |
protected SurveyRepository ( |
||
context | The data context. | |
Результат | System |
public UserHasTaken ( int userId, int surveyId ) : bool | ||
userId | int | The id of the user. |
surveyId | int | The id of the survey. |
Результат | bool |