├── .gitattributes ├── .gitignore ├── Application ├── Application.csproj ├── DependencyInjection.cs ├── Features │ └── ProductFeatures │ │ ├── Commands │ │ ├── CreateProductCommand.cs │ │ ├── DeleteProductByIdCommand.cs │ │ └── UpdateProductCommand.cs │ │ └── Queries │ │ ├── GetAllProductsQuery.cs │ │ └── GetProductByIdQuery.cs └── Interfaces │ └── IApplicationDbContext.cs ├── Domain ├── Common │ └── BaseEntity.cs ├── Domain.csproj └── Entities │ └── Product.cs ├── OnionArchitecture.sln ├── Persistence ├── Context │ └── ApplicationDbContext.cs ├── DependencyInjection.cs ├── Migrations │ ├── 20200617200348_Initial.Designer.cs │ ├── 20200617200348_Initial.cs │ ├── 20200617200446_Initial1.Designer.cs │ ├── 20200617200446_Initial1.cs │ └── ApplicationDbContextModelSnapshot.cs └── Persistence.csproj ├── README.md └── WebApi ├── Controllers ├── BaseApiController.cs ├── WeatherForecastController.cs └── v1 │ └── ProductController.cs ├── OnionArchitecture.xml ├── Program.cs ├── Properties └── launchSettings.json ├── Startup.cs ├── WeatherForecast.cs ├── WebApi.csproj ├── appsettings.Development.json └── appsettings.json /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/.gitignore -------------------------------------------------------------------------------- /Application/Application.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Application.csproj -------------------------------------------------------------------------------- /Application/DependencyInjection.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/DependencyInjection.cs -------------------------------------------------------------------------------- /Application/Features/ProductFeatures/Commands/CreateProductCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Features/ProductFeatures/Commands/CreateProductCommand.cs -------------------------------------------------------------------------------- /Application/Features/ProductFeatures/Commands/DeleteProductByIdCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Features/ProductFeatures/Commands/DeleteProductByIdCommand.cs -------------------------------------------------------------------------------- /Application/Features/ProductFeatures/Commands/UpdateProductCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Features/ProductFeatures/Commands/UpdateProductCommand.cs -------------------------------------------------------------------------------- /Application/Features/ProductFeatures/Queries/GetAllProductsQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Features/ProductFeatures/Queries/GetAllProductsQuery.cs -------------------------------------------------------------------------------- /Application/Features/ProductFeatures/Queries/GetProductByIdQuery.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Features/ProductFeatures/Queries/GetProductByIdQuery.cs -------------------------------------------------------------------------------- /Application/Interfaces/IApplicationDbContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Application/Interfaces/IApplicationDbContext.cs -------------------------------------------------------------------------------- /Domain/Common/BaseEntity.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Domain/Common/BaseEntity.cs -------------------------------------------------------------------------------- /Domain/Domain.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Domain/Domain.csproj -------------------------------------------------------------------------------- /Domain/Entities/Product.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Domain/Entities/Product.cs -------------------------------------------------------------------------------- /OnionArchitecture.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/OnionArchitecture.sln -------------------------------------------------------------------------------- /Persistence/Context/ApplicationDbContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Context/ApplicationDbContext.cs -------------------------------------------------------------------------------- /Persistence/DependencyInjection.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/DependencyInjection.cs -------------------------------------------------------------------------------- /Persistence/Migrations/20200617200348_Initial.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Migrations/20200617200348_Initial.Designer.cs -------------------------------------------------------------------------------- /Persistence/Migrations/20200617200348_Initial.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Migrations/20200617200348_Initial.cs -------------------------------------------------------------------------------- /Persistence/Migrations/20200617200446_Initial1.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Migrations/20200617200446_Initial1.Designer.cs -------------------------------------------------------------------------------- /Persistence/Migrations/20200617200446_Initial1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Migrations/20200617200446_Initial1.cs -------------------------------------------------------------------------------- /Persistence/Migrations/ApplicationDbContextModelSnapshot.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Migrations/ApplicationDbContextModelSnapshot.cs -------------------------------------------------------------------------------- /Persistence/Persistence.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/Persistence/Persistence.csproj -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/README.md -------------------------------------------------------------------------------- /WebApi/Controllers/BaseApiController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/Controllers/BaseApiController.cs -------------------------------------------------------------------------------- /WebApi/Controllers/WeatherForecastController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/Controllers/WeatherForecastController.cs -------------------------------------------------------------------------------- /WebApi/Controllers/v1/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/Controllers/v1/ProductController.cs -------------------------------------------------------------------------------- /WebApi/OnionArchitecture.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/OnionArchitecture.xml -------------------------------------------------------------------------------- /WebApi/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/Program.cs -------------------------------------------------------------------------------- /WebApi/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/Properties/launchSettings.json -------------------------------------------------------------------------------- /WebApi/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/Startup.cs -------------------------------------------------------------------------------- /WebApi/WeatherForecast.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/WeatherForecast.cs -------------------------------------------------------------------------------- /WebApi/WebApi.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/WebApi.csproj -------------------------------------------------------------------------------- /WebApi/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/appsettings.Development.json -------------------------------------------------------------------------------- /WebApi/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/OnionArchitecture/HEAD/WebApi/appsettings.json --------------------------------------------------------------------------------