/// <summary> /// Deprecated Method for adding a new object to the CodeMasters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCodeMasters(CodeMaster codeMaster) { base.AddObject("CodeMasters", codeMaster); }
public string GetNote(string type, string code) { CodeMaster e = db.CodeMasters.Where(r => r.Type == type && r.Code == code).FirstOrDefault(); return(e == null ? "" : e.Note); }
/// <summary> /// Create a new CodeMaster object. /// </summary> /// <param name="id">Initial value of the ID property.</param> public static CodeMaster CreateCodeMaster(global::System.Int32 id) { CodeMaster codeMaster = new CodeMaster(); codeMaster.ID = id; return codeMaster; }