示例#1
0
 public IQueryable <Branches> GetBranchesViaID(int ID)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Branches.Where(i => i.id == ID));
 }
示例#2
0
 public IQueryable <Branches> GetBranchesViaName(string name)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Branches.Where(i => i.branchname.Equals(name)));
 }
示例#3
0
 public IQueryable <Tasks> GetTaskViaExecutorID(int ID)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Tasks.Where(i => i.executor_id == ID));
 }
示例#4
0
 public IQueryable <Branches> GetAllBranches()
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Branches);
 }
示例#5
0
 public IQueryable <Tasks> GetTaskViaID(DateTime end)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Tasks.Where(i => i.date_end == end));
 }
示例#6
0
 public IQueryable <Tasks> GetTaskViaStatus(string s)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Tasks.Where(i => i.status.Equals(s)));
 }
示例#7
0
 public IQueryable <Tasks> GetTaskViaName(string name)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Tasks.Where(i => i.taskname.Equals(name)));
 }
示例#8
0
 public IQueryable <Tasks> GetTaskViaBeginTime(DateTime begin)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Tasks.Where(i => i.date_begin == begin));
 }
示例#9
0
 public IQueryable <Users> GetUserViaName(string name)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Users.Where(i => i.username.Equals(name)).Select(e => e));
 }
示例#10
0
 public IQueryable <Users> GetUserViaPassword(string pass)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Users.Where(i => i.password.Equals(pass)).Select(e => e));
 }
示例#11
0
 public IQueryable <Users> GetUserViaID(int ID)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Users.Where(i => i.id == ID));
 }
示例#12
0
 public IQueryable <Tasks> GetAllTasks()
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Tasks);
 }
示例#13
0
 public IQueryable <Branches> GetBranchesViaBeginTime(DateTime begin)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Branches.Where(i => i.created_date == begin));
 }
示例#14
0
 public IQueryable <Users> GetAllUsers()
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Users);
 }
示例#15
0
 public IQueryable <Branches> GetBranchesViaDesc(string name)
 {
     ctx = new TaskManagerDBEntities();
     return(ctx.Branches.Where(i => i.description.Equals(name)));
 }