Skip to content

marsen/VoteIt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VoteIt

Vote It !

How to

  • SQL Server for Docker
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=[?]' -e 'MSSQL_PID=Express' -p 1433:1433 -v D:\Docker\VoteItDB:/var/opt/mssql -d mcr.microsoft.com/mssql/server:latest
  • Entity Framework Core DB First
Scaffold-DbContext "Server=localhost;~Database=VoteItDB;User ID=[?];Password=[?];" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Tables Feed FeedLike -force  
sqllocaldb create MSSQLLocalDB
  • 重建 VoteItDB
    "SQL Server 物件總管"連線至 (localdb)\MSSQLLocalDB
    執行 SQL 指令建立資料庫
conf/VoteItDB.sql  
Update-Database -Context ApplicationDbContext  

Rference

Releases

No releases published

Packages

No packages published

Languages

  • C# 63.5%
  • HTML 34.1%
  • CSS 2.0%
  • Other 0.4%