분류 전체보기
-
-
[EFCore] SQLite .db 사용시 CloseC#/EFCore 2023. 8. 29. 11:42
Sqlite .db 사용 시 어플리케이션 종료할 때 까지 위 3개의 파일이 생성 되는데 .db 는 비어 있고 실제 파일은 .db-wal파일에 쓰인다. WAL - 3.7.0 에는 WAL ( Write Ahead to Log ) 방식이 새로 도입되었다. 이 녀석도 journal 과 마찬가지로 atomic commit 과 rollback 을 지원하기 위함이다. 이 녀석은 -wal 형태를 갖는다. - WAL file 은 DB connection 이 처음 이뤄질 때 생성되고, last connection 이 close 될 때 제거된다. 그러나 예외상황이 발생하면 (정상종료하지 않으면) WAL 파일은 남게 되고, 다음에 DB open 시 이 정보를 이용해 DB 를 원상복구 한다. - 모든 process 의 SQLi..
-
-
[C#] 모듈정보 가져오기C#/기초 2023. 7. 31. 14:39
Module 클래스 참조 정의 네임스페이스:System.Reflection어셈블리:System.Runtime.dll 모듈에 리플렉션을 실행합니다. public abstract class Module : System.Reflection.ICustomAttributeProvider, System.Runtime.Serialization.ISerializable 예제 다음 코드 예제에서는 리플렉션을 사용하여 모듈에 대한 정보를 가져오는 방법을 보여 줍니다. using System.Reflection; using System; public class Program { public static void Main() { Class1 c1 = new Class1(); // Show the current module. ..
-
[C#] AttributeC#/기초 2023. 7. 31. 13:13
MetaData 로 이해. 리플렉션 https://dlsenfl.tistory.com/entry/C-Reflection [C#] Reflection dlsenfl.tistory.com 사용자 지정 특성 만들기 아티클 2023. 03. 16. 기여자 1명 피드백 메타데이터를 통해 특성의 정의를 빠르고 쉽게 식별할 수 있도록 해주는 Attribute로부터 직접적으로 또는 간접적으로 상속한 특성 클래스를 정의하여 사용자 지정 특성을 만들 수 있습니다. 형식을 작성한 프로그래머의 이름을 형식에 태그로 지정한다고 가정해봅시다. 사용자 지정 Author 특성 클래스를 아래와 같이 정의할 수 있습니다. [System.AttributeUsage(System.AttributeTargets.Class | System.At..
-
[MFC] 기초C++/MFC 2023. 7. 27. 14:45
@MFC, Win32API기반 응용프로그램의 작동원리. Message Driven방식 채택 (Message Loop) Input -> Event대기 -> Event수신 -> Message발생 -> 처리기 검색(함수 호출 OS:CallBack )-> Message처리 @Win32 WinMain(프로그램 시작) MFC에서는 AfxWinMain InitInstance (초기화, 윈도우 생성, 메시지처리기함수 등록) 루프돌림(DispatchMessage) WndProc (콜백 되는 놈) DispatchMessage할때마다 불림. @MFC InitInstance (프로그램 시작 시 불림) ExitInstance (프로그램 종료 시 불림) @SDI 구조(Framework) ClassView CWinApp :제어 C..