The ContestFactory type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ContestFactory | Initializes a new instance of the ContestFactory class |
Methods
| Name | Description | |
|---|---|---|
| AddAlternative |
Adds the alternative(s)
| |
| AddAnswer | Overloaded. | |
| AddContest |
Adds the Contest to the database.
| |
| AddQuestion |
Adds the question to the database for the specified Contest.
| |
| AddSubmission |
Adds the submission to the database.
| |
| AddWinner | ||
| ConstructAlternative |
Construct an Alternative instance from a DbDataReader
| |
| ConstructAnswer |
Construct an Answer instance from a DbDataReader
| |
| ConstructContest |
Construct a Contest instance from a DbDataReader
| |
| ConstructMultipleAlternativeAnswer |
Construct a MultipleAlternativeAnswer instance from a DbDataReader
| |
| ConstructQuestion |
Construct a Question instance from a DbDataReader
| |
| ConstructSingleAlternativeAnswer |
Construct a SingleAlternativeAnswer instance from a DbDataReader
| |
| ConstructSubmission |
Construct a Submission instance from a DbDataReader
| |
| ConstructTextAnswer |
Construct a TextAnswer instance from a DbDataReader
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetAlternative |
Gets a question alternative
| |
| GetAlternatives |
Loads specific data for an alternative question
| |
| GetAnswerAlternatives |
Gets the answer alternatives
| |
| GetAnswers |
Gets all the answers for a specific submission
| |
| GetContest |
Gets the contest with the specified id
| |
| GetContests |
Gets a collection of Contests for categories specified.
| |
| GetContestWinners |
Gets the winners for a specified Contest
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetMultipleAlternativeAnswer |
Gets a MultipleAlternativeAnswer by ID
| |
| GetQuestion |
Gets the question with the id from the database.
| |
| GetQuestions |
Gets the questions for the specified contest.
| |
| GetSingleAlternativeAnswer |
Gets a SingleAlternativeAnswer by ID
| |
| GetSubmission | Overloaded. | |
| GetSubmissions |
Gets the Submissions for a contest
| |
| GetTextAnswer |
Gets a TextAnswer by ID
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| RemoveAlternative |
Removes the question from the database.
| |
| RemoveContest |
Removes the Contest object
| |
| RemoveQuestion |
Remove the question from the database.
| |
| RemoveSubmission |
Removes a Submission
| |
| RemoveWinner |
Removes the Contest winner from the database.
| |
| ToString | (Inherited from Object.) | |
| UpdateAlternative |
Updates the question alternative(s)
| |
| UpdateContest |
Updates the Contest in the database.
| |
| UpdateQuestion |
Update the question in the database.
|
Properties
| Name | Description | |
|---|---|---|
| Instance |