{"id":18938865,"url":"https://github.com/nikoo-asadnejad/genericrepository","last_synced_at":"2025-04-15T19:30:37.419Z","repository":{"id":41298564,"uuid":"499747467","full_name":"Nikoo-Asadnejad/GenericRepository","owner":"Nikoo-Asadnejad","description":"This class library implements the Generic Repository Pattern for SQL Server databases. It supports both asynchronous and synchronous operations and is designed to offer a clean and efficient data access layer.","archived":false,"fork":false,"pushed_at":"2024-11-14T07:39:09.000Z","size":15294,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T01:12:49.540Z","etag":null,"topics":["audit-log","decorator-pattern","domain-event","domain-events","dotnetcore","ef-core","entity-framework-core","generic-repositories","generic-repository","generic-repository-core","generic-repository-pattern","genericrepository","outbox-pattern","repository","repository-pattern","unit-of-work-pattern","unitofwork","unitofwork-pattern"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nikoo-Asadnejad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-06-04T06:42:49.000Z","updated_at":"2025-02-01T18:59:00.000Z","dependencies_parsed_at":"2023-02-09T15:46:20.507Z","dependency_job_id":"0c3fb876-e490-4cd1-8ba2-c7e1cf8f3f52","html_url":"https://github.com/Nikoo-Asadnejad/GenericRepository","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikoo-Asadnejad%2FGenericRepository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikoo-Asadnejad%2FGenericRepository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikoo-Asadnejad%2FGenericRepository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikoo-Asadnejad%2FGenericRepository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nikoo-Asadnejad","download_url":"https://codeload.github.com/Nikoo-Asadnejad/GenericRepository/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249138544,"owners_count":21218904,"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":["audit-log","decorator-pattern","domain-event","domain-events","dotnetcore","ef-core","entity-framework-core","generic-repositories","generic-repository","generic-repository-core","generic-repository-pattern","genericrepository","outbox-pattern","repository","repository-pattern","unit-of-work-pattern","unitofwork","unitofwork-pattern"],"created_at":"2024-11-08T12:15:39.443Z","updated_at":"2025-04-15T19:30:32.394Z","avatar_url":"https://github.com/Nikoo-Asadnejad.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenericRepository\nThis class library implements the Generic Repository Pattern for SQL Server databases. It supports both asynchronous and synchronous operations and is designed to offer a clean and efficient data access layer.\n\n\n\n## Key Features : \n-\tSeparation of Command and Query Repositories: Distinguishes between command (write) and query (read) operations to adhere to the CQRS pattern.\n- Cache Repository with Decorator Pattern: Enhances the query repository with caching to improve performance and reduce database load.\n- Domain Event Handling: Facilitates decoupled communication and business logic execution based on domain events.\n- Audit Logging: Provides comprehensive logging of repository operations for traceability and accountability.\n\n## Components :\n\n- Generic Repository Interface: Defines the standard CRUD methods for data access.\n- Command Repository: Manages create, update, and delete operations.\n- Query Repository: Manages read operations and is enhanced with caching capabilities.\n- Cache Repository: Implements caching for the query repository using the decorator pattern.\n- Domain Event Handler: Handles domain events and executes related actions.\n- Audit Log Service: Records and manages audit logs for repository interactions.\n- Support for Multiple DbContext: Enables the handling of multiple database contexts, allowing flexibility and separation of concerns for different data models.\n- Raw SQL Execution: Allows execution of raw SQL commands for advanced query scenarios and performance optimization.\n- SQL Transactions: Provides support for executing operations within transactions, ensuring data consistency and integrity during batch operations.\n\n## Configuration:\nPass `IServiceCollection` to following method to add services to your DI:\n```csharp\nGenericRepositoryConfigurator.InjectServices(services);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoo-asadnejad%2Fgenericrepository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikoo-asadnejad%2Fgenericrepository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoo-asadnejad%2Fgenericrepository/lists"}