コード例 #1
0
ファイル: ValuesController.cs プロジェクト: Emon-S/TEST
        public void Post([FromBody] string value)
        {
            string   connetionString = "Data Source = DLC5CG82627CPLH\\sql2014;Database=medicine_db;Persist Security Info=True;Integrated Security=SSPI;";
            DBHelper dBHelper        = new DBHelper(connetionString);
            string   sql             = string.Format("insert into ApplyInfo values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", value, "1", "12", "t", "1", "S", DateTime.Now);
            var      A        = dBHelper.ExcuteSQL(sql);
            SaveFile saveFile = new SaveFile();

            saveFile.CreateorWritefile(value);
        }