Classes | |
class | PersonCollection |
class | RatingCollection |
Public Member Functions | |
RatingDictionary (long recipeId) | |
Create a RatingDictionary for a specific recipe. | |
void | Save (long recipeId) |
Save these relations to the database. | |
void | Delete (long recipeId) |
Delete the assocations this dictionary represent from the database. | |
void | Add (Person key, double value) |
bool | ContainsKey (Person key) |
bool | Remove (Person key) |
bool | TryGetValue (Person key, out double value) |
IEnumerator< KeyValuePair < Person, double > > | GetEnumerator () |
void | Add (KeyValuePair< Person, double > item) |
void | Clear () |
bool | Contains (KeyValuePair< Person, double > item) |
void | CopyTo (KeyValuePair< Person, double >[] array, int arrayIndex) |
bool | Remove (KeyValuePair< Person, double > item) |
Properties | |
double | this [Person key] [get, set] |
ICollection< Person > | Keys [get] |
ICollection< double > | Values [get] |
int | Count [get] |
bool | IsReadOnly [get] |
Private Member Functions | |
void | setValue (long person, double rating) |
Set a rating from a person. | |
System.Collections.IEnumerator System.Collections.IEnumerable. | GetEnumerator () |
Private Attributes | |
Dictionary< long, Rating > | cachedRatings = new Dictionary<long, Rating>() |
Dictionary< long, Rating > | changedRatings = new Dictionary<long, Rating>() |
Dictionary< long, Rating > | deletedRatings = new Dictionary<long, Rating>() |
Definition at line 11 of file Recipe.RatingDictionary.cs.
Foodolini.BusinessLogic.Recipe.RatingDictionary.RatingDictionary | ( | long | recipeId | ) |
Create a RatingDictionary for a specific recipe.
recipeId | RecipeRowId to create for, 0 for an unsaved recipe |
Definition at line 23 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.Add | ( | KeyValuePair< Person, double > | item | ) |
Definition at line 359 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.Add | ( | Person | key, | |
double | value | |||
) |
Definition at line 144 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.Clear | ( | ) |
Definition at line 363 of file Recipe.RatingDictionary.cs.
bool Foodolini.BusinessLogic.Recipe.RatingDictionary.Contains | ( | KeyValuePair< Person, double > | item | ) |
Definition at line 372 of file Recipe.RatingDictionary.cs.
bool Foodolini.BusinessLogic.Recipe.RatingDictionary.ContainsKey | ( | Person | key | ) |
Definition at line 148 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.CopyTo | ( | KeyValuePair< Person, double >[] | array, | |
int | arrayIndex | |||
) |
Definition at line 377 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.Delete | ( | long | recipeId | ) |
Delete the assocations this dictionary represent from the database.
Definition at line 112 of file Recipe.RatingDictionary.cs.
System.Collections.IEnumerator System.Collections.IEnumerable. Foodolini.BusinessLogic.Recipe.RatingDictionary.GetEnumerator | ( | ) | [private] |
Definition at line 352 of file Recipe.RatingDictionary.cs.
IEnumerator<KeyValuePair<Person, double> > Foodolini.BusinessLogic.Recipe.RatingDictionary.GetEnumerator | ( | ) |
Definition at line 342 of file Recipe.RatingDictionary.cs.
bool Foodolini.BusinessLogic.Recipe.RatingDictionary.Remove | ( | KeyValuePair< Person, double > | item | ) |
Definition at line 384 of file Recipe.RatingDictionary.cs.
bool Foodolini.BusinessLogic.Recipe.RatingDictionary.Remove | ( | Person | key | ) |
Definition at line 152 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.Save | ( | long | recipeId | ) |
Save these relations to the database.
recipeId | Must be the same as the one it was created for, unless it was create with 0 |
Definition at line 72 of file Recipe.RatingDictionary.cs.
void Foodolini.BusinessLogic.Recipe.RatingDictionary.setValue | ( | long | person, | |
double | rating | |||
) | [private] |
Set a rating from a person.
This will overwrite existing ratings if any, or create a new one.
person | Person Id who assigned this rating | |
rating | Rating to set |
Definition at line 41 of file Recipe.RatingDictionary.cs.
bool Foodolini.BusinessLogic.Recipe.RatingDictionary.TryGetValue | ( | Person | key, | |
out double | value | |||
) |
Definition at line 171 of file Recipe.RatingDictionary.cs.
Dictionary<long, Rating> Foodolini.BusinessLogic.Recipe.RatingDictionary.cachedRatings = new Dictionary<long, Rating>() [private] |
Definition at line 13 of file Recipe.RatingDictionary.cs.
Dictionary<long, Rating> Foodolini.BusinessLogic.Recipe.RatingDictionary.changedRatings = new Dictionary<long, Rating>() [private] |
Definition at line 14 of file Recipe.RatingDictionary.cs.
Dictionary<long, Rating> Foodolini.BusinessLogic.Recipe.RatingDictionary.deletedRatings = new Dictionary<long, Rating>() [private] |
Definition at line 15 of file Recipe.RatingDictionary.cs.
int Foodolini.BusinessLogic.Recipe.RatingDictionary.Count [get] |
Definition at line 397 of file Recipe.RatingDictionary.cs.
bool Foodolini.BusinessLogic.Recipe.RatingDictionary.IsReadOnly [get] |
Definition at line 403 of file Recipe.RatingDictionary.cs.
ICollection<Person> Foodolini.BusinessLogic.Recipe.RatingDictionary.Keys [get] |
Definition at line 261 of file Recipe.RatingDictionary.cs.
double Foodolini.BusinessLogic.Recipe.RatingDictionary.this[Person key] [get, set] |
Definition at line 186 of file Recipe.RatingDictionary.cs.
ICollection<double> Foodolini.BusinessLogic.Recipe.RatingDictionary.Values [get] |
Definition at line 334 of file Recipe.RatingDictionary.cs.