{"id":25491844,"url":"https://github.com/MegaByteMark/intradotnet-efcore-infrastructure","last_synced_at":"2025-11-08T18:30:25.322Z","repository":{"id":273195293,"uuid":"907992360","full_name":"MegaByteMark/Intradotnet-entityframeworkcore-optimizations","owner":"MegaByteMark","description":"Optimization classes to remove boilerplate when generating entityframework dbcontexts","archived":false,"fork":false,"pushed_at":"2025-02-04T10:24:47.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T11:26:12.441Z","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/MegaByteMark.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":"2024-12-24T20:00:43.000Z","updated_at":"2025-01-23T22:24:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3cf22d4-9b1f-4a1b-b69f-62b42eb2f3cd","html_url":"https://github.com/MegaByteMark/Intradotnet-entityframeworkcore-optimizations","commit_stats":null,"previous_names":["megabytemark/intradotnet-entityframeworkcore-optimizations"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaByteMark%2FIntradotnet-entityframeworkcore-optimizations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaByteMark%2FIntradotnet-entityframeworkcore-optimizations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaByteMark%2FIntradotnet-entityframeworkcore-optimizations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaByteMark%2FIntradotnet-entityframeworkcore-optimizations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MegaByteMark","download_url":"https://codeload.github.com/MegaByteMark/Intradotnet-entityframeworkcore-optimizations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558916,"owners_count":19658934,"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":"2025-02-18T22:19:03.498Z","updated_at":"2025-11-08T18:30:25.223Z","avatar_url":"https://github.com/MegaByteMark.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IntraDotNet EntityFrameworkCore Optimizations\n\nOptimization classes to remove boilerplate when generating EntityFramework DbContexts, their associated entities and implementing common functionality like row based change auditing, soft deleting and optimistic concurrency.\n\n## Getting Started\n\n### Prerequisites\n\n- .NET 9.0 SDK or later\n- EntityFrameworkCore 9.0 or later\n\n### Installation\n\n1. Add the NuGet package to your project:\n    ```sh\n    dotnet add package IntraDotNet.EntityFrameworkCore.Optimizations\n    ```\n\n### Usage\n\n1. Create your DbContext class inheriting from `DbContext`:\n    ```csharp\n    public class MyDbContext : DbContext\n    {\n        public DbSet\u003cMyEntity\u003e MyEntities { get; set; }\n    }\n    ```\n\n2. Create your repository class inheriting from `BaseAuditableRepository`:\n    ```csharp\n    public class MyEntityRepository : BaseAuditableRepository\u003cMyEntity, MyDbContext\u003e\n    {\n        public MyEntityRepository(IDbContextFactory\u003cMyDbContext\u003e contextFactory) : base(contextFactory)\n        {\n        }\n    }\n    ```\n\n3. Use the repository in your application:\n    ```csharp\n    var repository = new MyEntityRepository(contextFactory);\n    var entities = await repository.GetAllAsync();\n    ```\n\n## Contributing\n\nContributions are welcome! Please submit a pull request on GitHub.\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes.\n4. Commit your changes (`git commit -am 'Add new feature'`).\n5. Push to the branch (`git push origin feature-branch`).\n6. Create a new Pull Request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](http://_vscodecontentref_/1) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMegaByteMark%2Fintradotnet-efcore-infrastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMegaByteMark%2Fintradotnet-efcore-infrastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMegaByteMark%2Fintradotnet-efcore-infrastructure/lists"}