{"id":17636019,"url":"https://github.com/phjb/sistemaescolar","last_synced_at":"2025-06-21T05:01:57.820Z","repository":{"id":120734678,"uuid":"330501054","full_name":"phjb/SistemaEscolar","owner":"phjb","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-20T00:48:49.000Z","size":299,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-30T03:43:11.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phjb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-17T22:39:58.000Z","updated_at":"2021-01-17T23:27:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"4acc6e8b-777c-46ec-8b76-1a2c47084015","html_url":"https://github.com/phjb/SistemaEscolar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phjb/SistemaEscolar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phjb%2FSistemaEscolar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phjb%2FSistemaEscolar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phjb%2FSistemaEscolar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phjb%2FSistemaEscolar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phjb","download_url":"https://codeload.github.com/phjb/SistemaEscolar/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phjb%2FSistemaEscolar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261065242,"owners_count":23104761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-23T02:25:18.283Z","updated_at":"2025-06-21T05:01:52.784Z","avatar_url":"https://github.com/phjb.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sistema Escolar\n\n## Diagrama de classe do sistema\n\u003cbr\u003e\n\n![UML Logo](./screenshot/diagram.jpg)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n# Estrutura de pastas do projeto\n![UML Logo](./screenshot/Estrutura-de-Projetos.jpg)\n\u003cbr\u003e\n\u003cbr\u003e\n\n# Referências entre camadas\n\n## Application\n\n```sh\ndotnet add \n.\\Application\\Application.csproj reference \n.\\Domain\\Domain.csproj \n```\n## Infrastructure\n\n```sh\ndotnet add \n.\\Infrastructure\\Infrastructure.csproj reference \n.\\Application\\Application.csproj \n\ndotnet add \n.\\Infrastructure\\Infrastructure.csproj reference \n.\\Domain\\Domain.csproj  \n```\n## Presentation\n\n```sh\ndotnet add \n.\\Presentation\\Presentation.csproj reference \n.\\Infrastructure\\Infrastructure.csproj \n\ndotnet add \n.\\Presentation\\Presentation.csproj reference \n.\\Application\\Application.csproj\n```\n\u003cbr\u003e\u003cbr\u003e\n\n# EF Core 5.0\n\nIrei instalar os pacotes do ***EntityFrameworkCore*** necessários para cada camada do projeto.\n\n\n## Infrastructure\n\n```sh\ndotnet add package Microsoft.EntityFrameworkCore\ndotnet add package Microsoft.EntityFrameworkCore.Tools\n```\n\n## Presentation\n\n```sh\ndotnet add package Microsoft.EntityFrameworkCore.Sqlite\ndotnet add package Microsoft.EntityFrameworkCore.Design\n```\n\u003cbr\u003e\u003cbr\u003e\n\n# Migrations\n\n* Instalar o `dotnet ef`.\n\n```sh\ndotnet tool install --global dotnet-ef\n```\n\n* Adicionando a Migration\n\n```sh\ndotnet ef migrations add InitialCreate \n--project .\\Infrastructure\\Infrastructure.csproj \n--startup-project .\\Presentation\\Presentation.csproj\n```\n\n* Criando ou Alterando o Banco de Dados\n\n```sh\ndotnet ef database update \n--project .\\Infrastructure\\Infrastructure.csproj \n--startup-project .\\Presentation\\Presentation.csproj  \n```\n\u003cbr\u003e\u003cbr\u003e\n\n# Referências\n\n* ### [Introdução ao EF Core](https://docs.microsoft.com/pt-br/ef/core/get-started/?tabs=netcore-cli)\n\n* ### [Install Entity Framework Core](https://www.entityframeworktutorial.net/efcore/install-entity-framework-core.aspx)\n\n* ### [Migration in Entity Framework Core](https://www.entityframeworktutorial.net/efcore/entity-framework-core-migration.aspx)\n\n* ### [Visão geral das migrações](https://docs.microsoft.com/pt-br/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli)\n\n* ### [Usando um projeto de migrações separado](https://docs.microsoft.com/pt-br/ef/core/managing-schemas/migrations/projects?tabs=dotnet-core-cli)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphjb%2Fsistemaescolar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphjb%2Fsistemaescolar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphjb%2Fsistemaescolar/lists"}