示例#1
0
 public static SkillLists GetByID(int id)
 {
     using (DevContext ctx = new DevContext())
     {
         return(ctx.SkillLists.Where(x => x.ID == id).First());
     }
 }
示例#2
0
 public static List <SkillLists> GetForDeveloper(int?id)
 {
     using (DevContext ctx = new DevContext())
     {
         return(ctx.Developers.Where(x => x.ID == id).First().Skills.ToList());
     }
 }
示例#3
0
 public static List <SkillLists> GetAll()
 {
     using (DevContext ctx = new DevContext())
     {
         return(ctx.SkillLists.ToList());
     }
 }