[c#] 디렉터리 하위까지 검사해서 특정 확장자를 가진 파일만 삭제하기
·
c#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JsonFilesDelete { internal class FileName { static void Main(string[] args) { try { string rootPath = @"G:\fireProject_240105\화재 발생 예측 영상\Training\[라벨]화재씬\"; //json을 읽어올 경로 string[] files = Directory.GetFiles(rootPath, "*.json", SearchOption.AllDirectorie..
[WPF] MSSQL/MYSQL 데이터베이스 이용하기
·
c#/WPF
https://www.microsoft.com/ko-kr/download/details.aspx?id=35579 1. 데이터베이스 생성 및 테이블 생성 2. 데이터 삽입 및 조회 3. xaml.cs 파일에 조회 및 삽입 버튼 생성 ( 삽입의 경우를 위해 TextBox 3개도 생성) 4. MainViewModel 클래스에 ICommand SelectClick(조회), InsertClick(삽입) 생성 5. USERINFO List를 생성 6. USERINFO에 넣을 Name, Img, Age 프로퍼티 생성 7. 데이터베이스 조회 메서드 생성: async Task 로 생성 - query: - exception 처리 8. 데이터베이스 데이터 삽입 메서드 생성: async Task 로 생성 - query: - ..