Property | Type | Description | |
---|---|---|---|
SharedResourceFile | string |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
SurveyRepository ( |
Initializes a new instance of the SurveyRepository class.
|
Method | Description | |
---|---|---|
LoadReadOnlySurveys ( ) : IQueryable |
Loads all completed surveys.
|
public CreateAnswer ( int userId ) : |
||
userId | int | The ID of the user creating the instance. |
return |
public CreateQuestion ( int userId ) : |
||
userId | int | The ID of the user creating the instance. |
return |
public CreateResponse ( int responseHeaderId, int userId ) : |
||
responseHeaderId | int | The ID of the |
userId | int | The ID of the user creating the instance. |
return |
public CreateResponseHeader ( int userId ) : |
||
userId | int | The ID of the user creating the instance. |
return |
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. |
return |
public DeleteAnswers ( IEnumerable |
||
answers | IEnumerable |
The answers to delete. |
pendForNextSubmit | bool |
/// if set to |
return | void |
public DeleteQuestion ( int questionId ) : void | ||
questionId | int | The ID of the question. |
return | void |
public DeleteReadOnlySurvey ( int responseHeaderId ) : void | ||
responseHeaderId | int | The |
return | 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. |
return | void |
public GetModuleIdForQuestion ( int questionId ) : int | ||
questionId | int | The question's ID. |
return | int |
public GetModuleIdForSurvey ( int surveyId ) : int | ||
surveyId | int | The survey's ID. |
return | int |
public LoadAnswerResponseCounts ( int surveyId ) : IQueryable |
||
surveyId | int | The ID of the survey. |
return | IQueryable |
public LoadQuestions ( int surveyId ) : IQueryable |
||
surveyId | int | The ID of the survey. |
return | IQueryable |
public LoadReadOnlyAnswers ( int responseHeaderId, int questionId ) : IQueryable |
||
responseHeaderId | int | The ID of the |
questionId | int | The ID of the question. |
return | IQueryable |
public LoadReadOnlyQuestion ( int responseHeaderId, int questionId ) : IQuestion | ||
responseHeaderId | int | The ID of the |
questionId | int | The ID of the question. |
return | IQuestion |
public LoadReadOnlyQuestions ( int responseHeaderId, int sectionId ) : IQueryable |
||
responseHeaderId | int | The ID of the |
sectionId | int | The ID of the section. |
return | IQueryable |
public LoadReadOnlySection ( int responseHeaderId, int sectionId ) : |
||
responseHeaderId | int | The ID of the |
sectionId | int | The ID of the section. |
return |
public LoadReadOnlySections ( int responseHeaderId, int surveyId ) : IQueryable |
||
responseHeaderId | int | The ID of the |
surveyId | int | The ID of the survey. |
return | IQueryable |
public LoadReadOnlySurvey ( int responseHeaderId, int moduleId ) : |
||
responseHeaderId | int | The |
moduleId | int | The module ID. |
return |
public LoadResponses ( int surveyId ) : Response>>.IQueryable |
||
surveyId | int | The ID of the survey for which to get responses. |
return | Response>>.IQueryable |
public LoadSurvey ( int surveyId ) : |
||
surveyId | int | The survey id. |
return |
public LoadSurvey ( int surveyId, int moduleId ) : |
||
surveyId | int | The survey ID. |
moduleId | int | The module ID. |
return |
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 |
return | IQueryable |
public LoadSurveysForPortal ( int portalId ) : IQueryable |
||
portalId | int | The ID of the portal by which surveys should be filtered. |
return | IQueryable |
protected SurveyRepository ( |
||
context | The data context. | |
return | System |
public UserHasTaken ( int userId, int surveyId ) : bool | ||
userId | int | The id of the user. |
surveyId | int | The id of the survey. |
return | bool |