Public Member Functions | |
| DataContainer () | |
| Creates an empty, properly formatted DataContainer. | |
| DataContainer (Dictionary< int, Project > projectTable, Dictionary< int, Literature > literatureTable, Dictionary< int, Comment > commentTable, Dictionary< string, Person > personTable, DataTable tags) | |
| Create a DataConatiner using already properly formatted datastructures. (See documentation for DataContainer.CreateEmptyTagTable() for explaination). | |
Static Public Member Functions | |
| static DataTable | CreateEmptyTagTable () |
| Creates a DataTable object which contains three DataColumn, "Tag", "ID", "UserName". All of which are added to the table's PrimaryKey. | |
Properties | |
| Dictionary< int, Project > | ProjectTable [get] |
| The Dictionary containing all Projects in the system, indiced by Project.ID. | |
| Dictionary< int, Literature > | LiteratureTable [get] |
| The Dictionary containing all Literature in the system, indiced by Literature.ID. | |
| Dictionary< int, Comment > | CommentTable [get] |
| Dictionary containing all Comments, indiced by Comment.ID. | |
| Dictionary< string, Person > | PersonTable [get] |
| The Dictionary containing all People in the system, indiced by Person.UserName. | |
| DataTable | Tags [get] |
| A properly formatted DataTable containing all Tags in the system. (See documentation for DataContainer.CreateEmptyTagTable() for explaination). | |
Private Attributes | |
| Dictionary< int, Project > | projectTable |
| Dictionary< int, Literature > | literatureTable |
| Dictionary< int, Comment > | commentTable |
| Dictionary< string, Person > | personTable |
| DataTable | tags = new DataTable() |
Definition at line 11 of file DataContainer.cs.
| Server.Data.DataContainer.DataContainer | ( | ) |
| Server.Data.DataContainer.DataContainer | ( | Dictionary< int, Project > | projectTable, | |
| Dictionary< int, Literature > | literatureTable, | |||
| Dictionary< int, Comment > | commentTable, | |||
| Dictionary< string, Person > | personTable, | |||
| DataTable | tags | |||
| ) |
Create a DataConatiner using already properly formatted datastructures. (See documentation for DataContainer.CreateEmptyTagTable() for explaination).
| projectTable | Dictionary that contains all Project objects, indiced by the Project.ID | |
| literatureTable | Dictionary that contains all Literature, indiced by the Literature.ID | |
| personTable | Dictionary that contains all Person objects, indiced by the Person.UserName | |
| tags | A properly formatted DataTable containing all Tags in the system. (See documentation for DataContainer.CreateEmptyTagTable() for explaination) |
Definition at line 38 of file DataContainer.cs.
| static DataTable Server.Data.DataContainer.CreateEmptyTagTable | ( | ) | [static] |
Creates a DataTable object which contains three DataColumn, "Tag", "ID", "UserName". All of which are added to the table's PrimaryKey.
Definition at line 57 of file DataContainer.cs.
Dictionary<int, Project> Server.Data.DataContainer.ProjectTable [get] |
The Dictionary containing all Projects in the system, indiced by Project.ID.
Definition at line 70 of file DataContainer.cs.
Referenced by Server.Catalogue.CreateProject(), Server.Catalogue.CreateReference(), Server.Catalogue.CreateReview(), Server.Catalogue.CreateSuggestion(), Server.Catalogue.DeleteProject(), Server.Catalogue.DeleteReference(), Server.Catalogue.GetProject(), Server.Catalogue.GetProjectInfo(), Server.Catalogue.GetReference(), Server.Catalogue.GetUsersProjects(), Server.Catalogue.ListProjects(), Server.Catalogue.ListReferences(), Server.Catalogue.ListReviews(), Server.Catalogue.ListSuggestions(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SaveProjects(), Server.Test.PersistentDataTest.TestDatabase(), and Server.Catalogue.UpdateProject().
Dictionary<int, Literature> Server.Data.DataContainer.LiteratureTable [get] |
The Dictionary containing all Literature in the system, indiced by Literature.ID.
Definition at line 78 of file DataContainer.cs.
Referenced by Server.Catalogue.CreateComment(), Server.Catalogue.CreateLiterature(), Server.Catalogue.CreateReference(), Server.Catalogue.CreateReview(), Server.Catalogue.CreateSuggestion(), Server.Catalogue.DeleteLiterature(), Server.Catalogue.DeleteReference(), Server.Catalogue.GetComments(), Server.Catalogue.GetLiteratureInfo(), Server.Catalogue.ListLiterature(), Server.Catalogue.ListReferences(), Server.Catalogue.ListReviews(), Server.Catalogue.ListSuggestions(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SaveLiterature(), Server.Catalogue.Search(), Server.Test.PersistentDataTest.TestDatabase(), and Server.Catalogue.UpdateLiterature().
Dictionary<int, Comment> Server.Data.DataContainer.CommentTable [get] |
Dictionary containing all Comments, indiced by Comment.ID.
Definition at line 86 of file DataContainer.cs.
Referenced by Server.Catalogue.CreateComment().
Dictionary<string, Person> Server.Data.DataContainer.PersonTable [get] |
The Dictionary containing all People in the system, indiced by Person.UserName.
Definition at line 95 of file DataContainer.cs.
Referenced by Server.Catalogue.CreateComment(), Server.Catalogue.CreateLiterature(), Server.Catalogue.CreateReview(), Server.Test.PersistentDataTest.CreateShitloadOfComments(), Server.Catalogue.CreateSuggestion(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SavePersons(), and Server.Test.PersistentDataTest.TestDatabase().
DataTable Server.Data.DataContainer.Tags [get] |
A properly formatted DataTable containing all Tags in the system. (See documentation for DataContainer.CreateEmptyTagTable() for explaination).
Definition at line 103 of file DataContainer.cs.
Referenced by Server.Catalogue.DeleteLiterature(), Server.Catalogue.DeleteProject(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SaveTags(), and Server.Test.PersistentDataTest.TestDatabase().
1.5.1-p1