コード例 #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());
 }