- Como baixar o projeto
- Rodando migrations para criação das tabelas do banco de dados
- Configurar Conexão com o banco de dados
# Clonar o repositório
$ git clone https://github.com/LeonardoGabrielSanches
# Entrar no diretório
$ cd filmes-ioasys
- Abra o projeto em seu local de preferencia.
- Ir até o arquivo "DataContext.cs".
- Descomentar o método "OnConfiguring".
- Dentro do método "UseSqlServer", inserir a string de conexão para o banco SQL.
- Para rodar as migrations basta abrir um CMD na pasta do projeto "MoviesIoasys.Infra.Data.Sql" e rodar o seguinte comando.
# Criar as tabelas
$ dotnet ef database update
- Ir até o arquivo "DataContext.cs" e comentar novamente o método "OnConfiguring". (Não é necessário realizar esse passo caso não queira)
- Configurar a string de conexão no arquivo "appsettings.json", campo "Database".
Desenvolvido por Leonardo Gabriel Sanches