문제:
SQLiteDataReader로 date 타입의 데이터를 읽어올 때 FormatException 발생
해결:
SQLiteConnection의 connectionString에 'datetimeformat=CurrentCulture' 추가
예시:
new SQLiteConnection("Data Source=test.db;datetimeformat=CurrentCulture");
반응형
'Code > C#' 카테고리의 다른 글
C# switch Conflicting variable is defined below (0) | 2021.09.08 |
---|---|
C# foreach Collection was modified 오류 (0) | 2021.08.26 |
C# Dispatcher.BeginInvoke에 lambda식 사용 (0) | 2021.08.12 |
C# No process is associated with this object (0) | 2021.08.07 |
C# 단일 파일 빌드: 파일 중복 오류 (0) | 2021.07.25 |
단일 파일로 빌드한 결과물이 에러와 함께 즉시 종료 (0) | 2021.07.25 |
C# .NET 5.0 단일 파일로 빌드 (0) | 2021.07.24 |
C# LINQ를 쓸 수 없는 자료형에 LINQ 사용 (0) | 2021.07.19 |