private void LoadData(DataQueryContext context, TimeSpan timeOffset) { var user = this.AgendaDay.User; var date = this.AgendaDay.Date.Add(timeOffset); var agendaDay = new AgendaDay(user, date, this.MainContext.GetService <IAgendaDataProvider>().GetAgendaOutlets(context, user, date)); this.LoadData(agendaDay); }
public static Activity Insert(DataQueryContext context, Activity activity) { if (context == null) { throw new ArgumentNullException(nameof(context)); } context.Execute(new Query("insert into ....")); return(null); }
public static void Update(DataQueryContext context, Activity activity) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (activity == null) { throw new ArgumentNullException(nameof(activity)); } context.Execute(new Query(@"update activities set details = @details, ..... where id = @id")); }
public static List <AgendaOutlet> GetAgendaOutlets(DataQueryContext context, User user, DateTime date) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (user == null) { throw new ArgumentNullException(nameof(user)); } var outlets = context.MainContext.DataCache.GetValues <Outlet>(context.DbContext); //context.Execute(new Query<Outlet>("", null)); return(new List <AgendaOutlet>()); }
public IEnumerable <Outlet> GetOutlets(DataQueryContext context) { throw new NotImplementedException(); }
public IEnumerable <ActivityTypeCategory> GetCategories(DataQueryContext context) { throw new NotImplementedException(); }