CAAppFramework.Infrastructure 1.1.1

dotnet add package CAAppFramework.Infrastructure --version 1.1.1
                    
NuGet\Install-Package CAAppFramework.Infrastructure -Version 1.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CAAppFramework.Infrastructure" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CAAppFramework.Infrastructure" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="CAAppFramework.Infrastructure" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CAAppFramework.Infrastructure --version 1.1.1
                    
#r "nuget: CAAppFramework.Infrastructure, 1.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CAAppFramework.Infrastructure@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CAAppFramework.Infrastructure&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CAAppFramework.Infrastructure&version=1.1.1
                    
Install as a Cake Tool

CAAppFramework

Modern, temiz mimari prensiplerine dayalı .NET Core application framework.

NuGet Paketleri

Framework 3 ayrı NuGet paketi olarak dağıtılmaktadır:

📦 CAAppFramework.Core

dotnet add package CAAppFramework.Core
  • Domain Entities: Entity base sınıfları ve audit özellikleri
  • Result Pattern: Hata yönetimi için Result ve Error tipleri
  • Primitives: ApiResponse, Maybe, PagedList gibi temel tipler
  • Domain Events: Domain event pattern implementasyonu
  • Value Objects: Value object base sınıfı
  • Enumeration: Güçlü enum alternatifi

📦 CAAppFramework.Infrastructure

dotnet add package CAAppFramework.Infrastructure
  • Entity Framework Integration: EF Core ile entegrasyon
  • PostgreSQL Support: PostgreSQL veritabanı desteği
  • Repository Pattern: Generic repository implementasyonu
  • Unit of Work: Transaction yönetimi
  • Multi-tenancy: Çoklu kiracı desteği
  • Specification Pattern: LINQ specification implementasyonu

📦 CAAppFramework.Web

dotnet add package CAAppFramework.Web
  • Global Exception Handler: Merkezi hata yakalama
  • JWT Authentication: JWT tabanlı kimlik doğrulama
  • License Middleware: Lisans doğrulama sistemi
  • Service Extensions: DI container yapılandırması

Hızlı Başlangıç

1. Paketleri Yükleyin

dotnet add package CAAppFramework.Core
dotnet add package CAAppFramework.Infrastructure
dotnet add package CAAppFramework.Web

2. Program.cs'i Yapılandırın

using CAAppFramework.Infrastructure.DependencyInjection;
using CAAppFramework.Web.DependencyInjection;

var builder = WebApplication.CreateBuilder(args);

// Framework servislerini ekle
builder.Services.AddCore();
builder.Services.AddInfrastructure(
    connectionString: builder.Configuration.GetConnectionString("DefaultConnection")!
);
builder.Services.AddWebLayer();

var app = builder.Build();

// Global exception handler'ı ekle
app.UseGlobalExceptionMiddleware();

// Lisans middleware'ini ekle (opsiyonel)
app.UseCAAppLicense();

app.Run();

3. appsettings.json'u Yapılandırın

{
  "ConnectionStrings": {
    "DefaultConnection": "Host=localhost;Database=mydb;Username=postgres;Password=password"
  },
  "JWT": {
    "Issuer": "CAAppFramework",
    "Audience": "CAAppFramework",
    "SigningKey": "your-256-bit-secret-key-here",
    "AccessTokenMinutes": 60,
    "RefreshTokenDays": 30
  },
  "Framework": {
    "MultiTenancy": true,
    "SignalR": false,
    "RabbitMq": false,
    "Licensing": false
  }
}

Teknolojiler

  • .NET 9.0
  • Entity Framework Core
  • PostgreSQL (Npgsql)
  • ASP.NET Core
  • System.IdentityModel.Tokens.Jwt

Build ve Dağıtım

NuGet Paketlerini Oluşturmak İçin

dotnet build --configuration Release
dotnet pack --configuration Release --output nupkgs

Local Test İçin

dotnet nuget add source ./nupkgs --name Local

Lisans

MIT License

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.1 354 9/17/2025
1.0.0 336 9/17/2025