"Asp.net core mvc"의 두 판 사이의 차이
15번째 줄: | 15번째 줄: | ||
); | ); | ||
− | === MySQL 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;" |
2018년 11월 13일 (화) 04:52 판
목차
MySQL에서 마이그레이션 히스토리 테이블 생성
에러메시지
EFMigrationsHistory' doesn't exist
쿼리문
CREATE TABLE IF NOT EXISTS __EFMigrationsHistory (
MigrationId varchar(150) NOT NULL,
ProductVersion varchar(32) NOT NULL,
CONSTRAINT PK___EFMigrationsHistory PRIMARY KEY (MigrationId)
);
MySQL Identity 적용
에러메시지
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;"