Exemple #1
0
        public void Add(TestTableModel testTableModel)
        {
            var testTable = _mapper.Map <TestTable>(testTableModel);

            _testTableRepository.Add(testTable);
            //await Task.Run(() => _testTableRepository.Add(testTable));
        }
Exemple #2
0
        private void button1_ClickAsync(object sender, EventArgs e)
        {
            //IDbContext dbContext = new AppDbContext("Server=DESKTOP-OGUS4IV; Database=EfTest; User Id=sa; Password=123;");
            //_testTableService.SetContext(dbContext);

            var temp = _testTableService.GetById(1);


            var newTest = new TestTableModel()
            {
                ID    = 5,
                name  = "Le tri",
                value = 3333
            };

            _testTableService.Add(newTest);
            _testTableService.Save();

            var temp1 = _testTableService.GetById(3);

            var aesStr = _yayoiCryptor.EncryptData(_rawString, "12345678");

            textBox2.Text = aesStr;
        }
Exemple #3
0
 public Task <int> Update(TestTableModel entity)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public void Add(TestTableModel testTableModel)
 {
     throw new NotImplementedException();
 }