예제 #1
0
        private void button27_Click(object sender, EventArgs e)
        {
            var spApp = new ApplicationProcessor(ConfigurationManager.AppSettings["SPStoragePath"]);

            MessageBox.Show(
                spApp.Delete(spApp.Gets().FirstOrDefault().Id).ToString()
                );

            dgv.DataSource = spApp.Gets().ToDataTable();
        }
예제 #2
0
        private void button24_Click(object sender, EventArgs e)
        {
            var spApp = new ApplicationProcessor(ConfigurationManager.AppSettings["SPStoragePath"]);

            MessageBox.Show(
                spApp.Insert(new ApplicationsModel
            {
                Id               = new Guid(),
                Name             = "Test App",
                ConnectionString = "Contoh ConnectionString",
                IsActive         = true
            }).ToString()
                );

            dgv.DataSource = spApp.Gets().ToDataTable();
        }
예제 #3
0
 public List <ApplicationsModel> Get()
 {
     return(_ap.Gets());
 }