コード例 #1
0
 public Standard GetStandardByName(string name)
 {
     return(_standardRepository.GetSingle(
                s => s.StandardName.Equals(name),
                s => s.Students));
 }
        } //close GetStandardByID(...)

        public Standard GetStandardByName(string standardName)
        {
            return(_standardRepository.GetSingle(
                       d => d.StandardName.Equals(standardName),
                       d => d.Students)); //include related students
        } //close GetStandardByName(...)
コード例 #3
0
 public Standard GetStandardByID(int id)
 {
     return(_standardRepository.GetSingle(
                s => s.StandardId == id,
                s => s.Students));
 }
コード例 #4
0
ファイル: BusinessLayer.cs プロジェクト: anhkhoivu/CECS-475
 public Standard GetStandardByName(string standardName)
 {
     return(standardRepository.GetSingle(
                d => d.StandardName.Equals(standardName),
                d => d.Students)); //include related employees
 }