コード例 #1
0
        public Entries FindLastEntry(int Id)
        {
            var con = new WorkoutContext();
            var qry = from e in con.entry where e.Workout_id == Id && e.entry_status == "inprogress" select e;

            return(qry.First());
        }
コード例 #2
0
 public WorkoutRepository()
 {
     ObjContext = new WorkoutContext();
 }
コード例 #3
0
 public EntryRepository()
 {
     Context = new WorkoutContext();
 }