-
[WPF] Pre-build event/post-build eventC#/WPF 2023. 10. 17. 09:54
프로젝트 폴더 내의 dll 파일 OutputDirectory로 복사 Create the project. Add one file as Content. Unload the project and edit the *proj file manually. PreserveNewest Never Always PreserveNewest https://stackoverflow.com/questions/2059562/in-visual-studio-how-can-i-set-the-build-action-for-an-entire-folder
-
[EFCore] reset sqlite_sequenceC#/EFCore 2023. 10. 12. 10:57
Reset an AUTOINCREMENT field in SQLite sqlite_sequence : Primary Key 자동 증가시 생기는 테이블 name : Table이름 sq : 현재 자동 증가된 숫자 모든 테이블 데이타 삭제하더라도 sqlite_sequence 테이블 data를 삭제 하지 않으면 seq 이후의 값으로 Key값 자동 증가 https://www.vbforums.com/showthread.php?861479-RESOLVED-Reset-an-AUTOINCREMENT-field-in-SQLite VBForums Message No Thread specified. If you followed a valid link, please notify the administrator Click Her..
-
[WPF] MEFC#/WPF 2023. 10. 11. 11:35
[MEF] 10. Querying the CompositionContainer Managed Extensibility Framework 2009. 5. 18. 10:00 Posted by POWERUMC Querying the CompositionContainer CompositionContainer 의 Exported 구성 요소를 취득하기 위해서는 컨테이너에 하나의 구성 요소만이 존재해야 합니다. 쿼리(Query) 를 통해 이러한 객체들이 여러 개 존재할 경우 MEF 는 예외를 발생하게 됩니다. 바로 아래와 같은 경우이죠. l 하나의 인스턴스를 요청할 때, 인스턴스를 찾지 못했을 경우 l 하나의 인스턴스를 요청할 때, 인스턴스가 여러 개일 경우 GetExportedObject 일반적으로 ExportAt..
-
[WPF] gRPC ChatService ExampleC#/WPF 2023. 10. 11. 09:09
System.Linq.Aync 추가 하면 Async Finally() 사용가능. System.Interactive.Async 추가 하면 ForEachAsync() 사용가능. https://stackoverflow.com/questions/19895373/how-to-use-observable-fromevent-instead-of-fromeventpattern-and-avoid-string-lit How to use Observable.FromEvent instead of FromEventPattern and avoid string literal event names I'm learning my way around Rx within WinForms, and have the following code: //..
-
[C#] Action<T>C#/기초 2023. 10. 4. 11:46
전달 인자가 T인 반환 값 Void 메소드를 담는 대리자(Delegate) https://usingsystem.tistory.com/180 [C#] Action.Invoke() vs Action() 차이 action.Invoke는 action?.Invoke와 같이 action 콜백이 null인지 검사하고 null이 아닐 때에만 Invoke 되도록 사용하고자 할 때 많이 사용한다. 기존 예외처리 if(_action !=null) _action.Invoke(3);// _action(3) 과 같은 코 usingsystem.tistory.com https://blog.joe-brothers.com/csharp-delegate-func-action/ [C#] Delegate, Func, Action 이해하기: 차..
-
[EFCore] Grpc Data ParsingC#/EFCore 2023. 9. 21. 16:07
DbContext로 db 에서 불러온 Data Pasing할 때 외래키로 들고 있는 DataType포함 하여 쿼리하는 방법. public static List ReadAllTagDB(string TagDbName = null) { using var tagContext = new TagDbContext(); try { //tagContext.DbPath = Path.Combine(DbWorkingPath, TagDbName + ".db"); //var findTag = tagContext.Tags.Any(x => x.Id == TagId); //var readTag = tagContext.Tags.Where(x => x.Id == TagId).FirstOrDefault(); //Include(r=>r.De..
-
[DX] DevExpress Version UpgradeDevExpress/DX 2023. 9. 20. 08:58
Nuget Package Path C:\Program Files\DevExpress 23.1\Components\System\Components\packages https://docs.devexpress.com/ProjectConverter/2530/dialog-window Dialog Window | Project Converter | DevExpress Documentation Use one of the following ways to run the Project Converter as a dialog window. In the Start menu of your Windows OS, select All Programs > DevExpress 23.1 > Project Converter 23.1. In..