/// <summary> /// Deprecated Method for adding a new object to the Dictionaries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDictionaries(Dictionary dictionary) { base.AddObject("Dictionaries", dictionary); }
public DictionaryViewModel(Dictionary dictionary) { this.Name = dictionary.Name; this.WordCount = WordDAL.GetAllWordsForDictionary(dictionary.Id).Count; this.Id = dictionary.Id; }
/// <summary> /// Create a new Dictionary object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="userId">Initial value of the UserId property.</param> public static Dictionary CreateDictionary(global::System.Int32 id, global::System.String name, global::System.Guid userId) { Dictionary dictionary = new Dictionary(); dictionary.Id = id; dictionary.Name = name; dictionary.UserId = userId; return dictionary; }