예제 #1
0
 public void Kaydet(Tablo tablo)
 {
     using var context = new ToDoContext();
     context.Set <Tablo>().Add(tablo);
     context.SaveChanges();
 }
예제 #2
0
 public ToDoRepository(ToDoContext todoContext)
 {
     _todoContext = todoContext;
 }
예제 #3
0
 public ToDoItemsController(ToDoContext context)
 {
     _context = context;
 }
예제 #4
0
 public Tablo GetirIdile(int id)
 {
     using var context = new ToDoContext();
     return(context.Set <Tablo>().Find(id));
 }
예제 #5
0
 public KancelarijaRepository(ToDoContext context) : base(context)
 {
     _context = context;
 }
예제 #6
0
 public ToDoListRepository(ToDoContext context)
 {
     _context = context;
 }
예제 #7
0
 public ToDoService(ToDoContext context)
 {
     _context = context;
 }
예제 #8
0
 public ToDoController(ToDoContext context, IHostingEnvironment appEnvironment)
 {
     _context        = context;
     _appEnvironment = appEnvironment;
 }
예제 #9
0
 public ToDoItemRepository(ToDoContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #10
0
 public GoalRepository(ToDoContext context) : base(context)
 {
 }
 public PriorityListViewComponent(ToDoContext context)
 {
     db = context;
 }
예제 #12
0
 public TestController(ToDoContext toDoContext)
 {
     _toDoContext = toDoContext;
 }
예제 #13
0
 public ToDoController(ToDoContext context)
 {
     _ToDoContext = context;
 }
예제 #14
0
 public TodoController(ToDoContext ctx)
 {
     _ctx = ctx;
 }
예제 #15
0
 public UredjajController(ToDoContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #16
0
 public KancelarijaController(ToDoContext context, IMapper mapper) : base(context, mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public AdminController(ToDoContext context, IConfiguration configuration)
 {
     _context           = context;
     this.configuration = configuration;
 }
예제 #18
0
 public PriorityList(ToDoContext context)
 {
     db = context;
 }
 public void Delete(Table table)
 {
     using var context = new ToDoContext();
     context.Set <Table>().Remove(table);
     context.SaveChanges();
 }
예제 #20
0
 public UserToDoController(ToDoContext context, ILogger <UserToDoController> logger)
 {
     _logger  = logger;
     _context = context;
 }
 public List <Table> GetAll()
 {
     using var context = new ToDoContext();
     return(context.Set <Table>().ToList());
 }
예제 #22
0
 public ToDoRepository(ToDoContext context)
 {
     _toDoContext = context;
 }
 public Table GetWithId(int id)
 {
     using var context = new ToDoContext();
     return(context.Set <Table>().Find(id));
 }
예제 #24
0
 public List <Tablo> GetirHepsi()
 {
     using var context = new ToDoContext();
     return(context.Set <Tablo>().ToList());
 }
 public void Save(Table table)
 {
     using var context = new ToDoContext();
     context.Add(table);
     context.SaveChanges();
 }
예제 #26
0
 public void Guncelle(Tablo tablo)
 {
     using var context = new ToDoContext();
     context.Set <Tablo>().Update(tablo);
     context.SaveChanges();
 }
 public void Update(Table table)
 {
     using var context = new ToDoContext();
     context.Update(table);
     context.SaveChanges();
 }
예제 #28
0
 public void Sil(Tablo tablo)
 {
     using var context = new ToDoContext();
     context.Set <Tablo>().Remove(tablo);
     context.SaveChanges();
 }
예제 #29
0
 public ToDoController(ToDoContext context)
 {
     this.context = context;
 }
예제 #30
0
 /// <summary>
 /// The get.
 /// </summary>
 /// <returns>
 /// The <see cref="ToDoContext"/>.
 /// </returns>
 public ToDoContext Get()
 {
     return this.context ?? (this.context = new ToDoContext());
 }
예제 #31
0
 public OsobaController(ToDoContext context, IMapper mapper) : base(context, mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public ToDoController(ToDoContext context)
 {
     this._context = context;
 }
 public ToDoModelsController(ToDoContext context)
 {
     _context = context;
 }