예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CodeMasters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCodeMasters(CodeMaster codeMaster)
 {
     base.AddObject("CodeMasters", codeMaster);
 }
예제 #2
0
        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);
        }
예제 #3
0
 /// <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;
 }