Asp.net core mvc 편집하기
편집을 되돌릴 수 있습니다.
이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 저장해주세요.
최신판 | 당신의 편집 | ||
1번째 줄: | 1번째 줄: | ||
− | == | + | ===MySQL에서 마이그레이션 히스토리 테이블 생성=== |
− | === | + | |
− | + | ====에러메시지==== | |
− | + | EFMigrationsHistory' doesn't exist | |
− | + | ||
+ | ====쿼리문==== | ||
+ | <syntaxhighlight lang="sql"> | ||
CREATE TABLE IF NOT EXISTS __EFMigrationsHistory ( | CREATE TABLE IF NOT EXISTS __EFMigrationsHistory ( | ||
MigrationId varchar(150) NOT NULL, | MigrationId varchar(150) NOT NULL, | ||
11번째 줄: | 13번째 줄: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ===Identity 적용=== | + | ===MySQL Identity 적용=== |
====에러메시지==== | ====에러메시지==== | ||
InvalidOperationException: No coercion operator is defined between types 'System.Int16' and 'System.Boolean'. | InvalidOperationException: No coercion operator is defined between types 'System.Int16' and 'System.Boolean'. | ||
+ | |||
+ | ===PostgreSQL=== | ||
+ | |||
+ | ====nuget package==== | ||
+ | Install-Package Npgsql.EntityFrameworkCore.PostgreSQL | ||
+ | |||
+ | ====connection string==== | ||
+ | "User ID=damienbod;Password=1234;Host=localhost;Port=5432;Database=damienbod;Pooling=true;" | ||
===모델=== | ===모델=== |