public GraphLabsContextsAggregator(GraphLabsContext ctx) { _ctx = ctx; _users = new Lazy <IEntitySet <User> >(() => new EntitySet <User>(ctx)); _groups = new Lazy <IEntitySet <Group> >(() => new EntitySet <Group>(ctx)); _news = new Lazy <IEntitySet <News> >(() => new EntitySet <News>(ctx)); _sessions = new Lazy <IEntitySet <Session> >(() => new EntitySet <Session>(ctx)); _results = new Lazy <IEntitySet <Result> >(() => new EntitySet <Result>(ctx)); _taskReults = new Lazy <IEntitySet <TaskResult> >(() => new EntitySet <TaskResult>(ctx)); _actions = new Lazy <IEntitySet <StudentAction> >(() => new EntitySet <StudentAction>(ctx)); _testQuestions = new Lazy <IEntitySet <TestQuestion> >(() => new EntitySet <TestQuestion>(ctx)); _answerVariants = new Lazy <IEntitySet <AnswerVariant> >(() => new EntitySet <AnswerVariant>(ctx)); _categories = new Lazy <IEntitySet <Category> >(() => new EntitySet <Category>(ctx)); _labWorks = new Lazy <IEntitySet <LabWork> >(() => new EntitySet <LabWork>(ctx)); _labVariants = new Lazy <IEntitySet <LabVariant> >(() => new EntitySet <LabVariant>(ctx)); _labEntries = new Lazy <IEntitySet <LabEntry> >(() => new EntitySet <LabEntry>(ctx)); _tasks = new Lazy <IEntitySet <Task> >(() => new EntitySet <Task>(ctx)); _taskVariants = new Lazy <IEntitySet <TaskVariant> >(() => new EntitySet <TaskVariant>(ctx)); _settings = new Lazy <IEntitySet <Settings> >(() => new EntitySet <Settings>(ctx)); }
public GraphLabsContextImpl(GraphLabsContext ctx) { _ownsContext = false; _ctx = ctx; }
public GraphLabsContextImpl() { _ownsContext = true; _ctx = new GraphLabsContext(); }