본문 바로가기

Study/C#33

[C#] Oracle 연결해서 써먹기 # 2022.04.21 기준 Oracle Wallet 사용하여 연결은 아래링크 [C#] Oracle Wallet 사용해 Oracle Cloud Connection 연결 :: 1년차 개발자 (tistory.com) [C#] Oracle Wallet 사용해 Oracle Cloud Connection 연결 기존의 오라클 연결에서 DB를 Oracle Cloud 에 만들면서 Oracle Wallet을 생성하고 해당 Wallet을 통해서만 접속이 돼서 C# 에서 접속하는 방법을 포스팅한다.. 아무것도 모르는 상태라고 생각하고 처음부 theplace.tistory.com 프로그램 개발을 위해 C#을 통해 다양한 DB에 접근하고 같은 변동사항을 여러 DB에 적용해야 할 일이 생겼다. 해당 사항을 위한 정보 적음 자바에.. Study/C# 2021. 4. 23.
[C#] 파일 입출력 파일 입출력을 위해 FileStream 을 사용해줘야 한다. FileSream 객체는 인스턴스화 할때 옵션을 정할 수 있는데 옵션은 아래와 같다 // 덧붙이기 ( 없으면 생성) FileMode.Append // 새로생성 ( 이미 있는경우 IOException 발생) FileMode.Create // 새로생성 ( 덮어쓰기 , 문제 있다) FileMode.CreateNew // 열기 (없으면 FileNotFoundException 발생) FileMode.Open // 열기 (없으면 생성) FileMode.OpenOrCreate //파일을 비우고 열기 FileMode.Truncate FileStream fs - new FileStream("log.txt", FileMode.Append) log파일은 계속해서 .. Study/C# 2021. 4. 19.
[C#] C#에서의 배열 1차원 배열의 경우 int[] array = new int[5]; string[] stringArray = new string[6]; int[] array1 = new int[] { 1, 3, 5, 7, 9 }; string[] weekDays = new string[] { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; 2차원 배열 int[,] array = new int[4, 2]; 3차원배열 int[,,] array1 = new int[4, 2, 3]; // Two-dimensional array. int[,] array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } }; // The same array.. Study/C# 2021. 3. 4.
반응형