{"id":20759925,"url":"https://github.com/azerato/myapp-sample-architecture","last_synced_at":"2026-05-07T01:08:06.791Z","repository":{"id":146018713,"uuid":"85173495","full_name":"aZerato/myapp-sample-architecture","owner":"aZerato","description":"Sample C# ASP .NET Project Architecture","archived":false,"fork":false,"pushed_at":"2017-03-24T16:53:35.000Z","size":454,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-11T16:49:11.136Z","etag":null,"topics":["api","architecture","asp","csharp","dbset","dependency-injection","dependency-injection-container","domain-driven-design","dotnet","dto","entity-framework","entityframework","repository","repository-pattern","unitofwork","unity"],"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/aZerato.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":"2017-03-16T08:51:06.000Z","updated_at":"2020-05-01T04:29:49.000Z","dependencies_parsed_at":"2023-04-11T16:47:46.109Z","dependency_job_id":null,"html_url":"https://github.com/aZerato/myapp-sample-architecture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aZerato/myapp-sample-architecture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZerato%2Fmyapp-sample-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZerato%2Fmyapp-sample-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZerato%2Fmyapp-sample-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZerato%2Fmyapp-sample-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aZerato","download_url":"https://codeload.github.com/aZerato/myapp-sample-architecture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZerato%2Fmyapp-sample-architecture/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269780617,"owners_count":24474686,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","architecture","asp","csharp","dbset","dependency-injection","dependency-injection-container","domain-driven-design","dotnet","dto","entity-framework","entityframework","repository","repository-pattern","unitofwork","unity"],"created_at":"2024-11-17T10:09:06.424Z","updated_at":"2026-05-07T01:08:01.757Z","avatar_url":"https://github.com/aZerato.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample ASP .NET Architecture\n\nPattern [Domain-Driven Design](http://dddcommunity.org/) DDD\n\n## 01 - Presentation\n\n\u003e The user interface layer\n\nBasic API :\n\n- Controller \"Sample\" is used for DI \u0026 sample of CacheManager class.\n- Controller \"SampleAlt\" is used for demonstrate the using of \"services\" \u003e \"repository\" \u003e \"UoW\" \u003e \"EF\"\n\n## 02 - Domain\n\n\u003e The data management layer\n\n- Use \"module\" conception : services interfaces with their implementation (Module : aggregates/services [DDD])\n\n- DTO : Data Transfer Object (sample: MyApp.Domain.DTO.SampleDataDTO).\n\n- The [Specification Pattern](https://github.com/jnicolau/NSpecifications) (soon).\n\n- \"Select Builder\" : Thanks to LINQ you are able to create custom expression for return directly an DTO (sample: MyApp.Domain.SampleModule.Aggregates.SampleDataSelectBuilder).\n\n## 03 - Data\n\n\u003e The data access layer \n\n- Use EntityFramework (EF) with DbSet/Annotations for link a SQL/Table to a class/object (sample: MyApp.Domain.SampleModule.Aggregates.SampleData).\n- The [Unit Of Work (UnitOfWork / UoW) Pattern](https://martinfowler.com/eaaCatalog/unitOfWork.html) add transactions for the resolution of concurrency problems (MyApp.Data.UnitOfWorkContext).\n- The [Repository Pattern](https://msdn.microsoft.com/en-us/library/ff649690.aspx) add a layer between DbSet (return IQueryable) with UoW and the data used in \"Domain\" layer. \nQueryable manipulation is sensible, a Repository return an Enumerable or an Entity. (MyApp.Data.Core.Repository \u0026\u0026 MyApp.Domain.Core.IRepository)\n\n\n## 04 - Infrastructure\n\n\u003e The app management layer\n\n- CrossCutting : a layer can be used in all others.\n- The [Inversion Of Control](https://msdn.microsoft.com/en-us/library/ff921087.aspx).\n- Dependancy Injection (DI) \u0026 [LifeTimeManager](https://msdn.microsoft.com/en-us/library/ff647854.aspx).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazerato%2Fmyapp-sample-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazerato%2Fmyapp-sample-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazerato%2Fmyapp-sample-architecture/lists"}