c2955ad02f
TaxBaik CI/CD / build-and-deploy (push) Successful in 49s
Phase 2: Repository Implementation (Dapper) - TaxProfileRepository: tax profile CRUD + risk level analysis + filing due dates - TaxFilingScheduleRepository: schedule tracking + upcoming due dates + completion marking - ConsultingActivityRepository: CRM activity history + pending followups + consultant tracking - ContractRepository: contract lifecycle + active contracts + expiring alerts + MRR calculation - RevenueTrackingRepository: invoice tracking + payment status + revenue analysis Phase 3: Service Layer (Business Logic) - TaxProfileService: profile creation, risk assessment, upcoming filing detection - TaxFilingScheduleService: schedule management, deadline tracking, completion workflow - ConsultingActivityService: activity logging, followup management, consultant productivity - ContractService: contract management, MRR calculation, expiring contract alerts - RevenueTrackingService: invoice creation, payment tracking, revenue analytics Phase 4: API Controller (REST Endpoints) - TaxProfileController: CRUD operations + high-risk filtering + upcoming filings query Architecture Highlights: - SOLID principles: each layer has clear responsibility - Dapper-based repositories for data access - Comprehensive service layer for business logic - RESTful API design with proper error handling - Ready for Blazor UI implementation and deployment Database Migration V015 executed: - 5 new specialized tables for CRM and tax accounting - Appropriate indexes for query performance - Foreign key constraints for data integrity
33 lines
1.6 KiB
C#
33 lines
1.6 KiB
C#
namespace TaxBaik.Infrastructure;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using TaxBaik.Domain.Interfaces;
|
|
using TaxBaik.Infrastructure.Data;
|
|
using TaxBaik.Infrastructure.Repositories;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IDbConnectionFactory, DbConnectionFactory>();
|
|
services.AddScoped<IAdminUserRepository, AdminUserRepository>();
|
|
services.AddScoped<ICategoryRepository, CategoryRepository>();
|
|
services.AddScoped<IBlogPostRepository, BlogPostRepository>();
|
|
services.AddScoped<IInquiryRepository, InquiryRepository>();
|
|
services.AddScoped<ISiteSettingRepository, SiteSettingRepository>();
|
|
services.AddScoped<IAnnouncementRepository, AnnouncementRepository>();
|
|
services.AddScoped<IClientRepository, ClientRepository>();
|
|
services.AddScoped<IFaqRepository, FaqRepository>();
|
|
services.AddScoped<IConsultationRepository, ConsultationRepository>();
|
|
services.AddScoped<ITaxFilingRepository, TaxFilingRepository>();
|
|
services.AddScoped<ICompanyRepository, CompanyRepository>();
|
|
services.AddScoped<ITaxProfileRepository, TaxProfileRepository>();
|
|
services.AddScoped<ITaxFilingScheduleRepository, TaxFilingScheduleRepository>();
|
|
services.AddScoped<IConsultingActivityRepository, ConsultingActivityRepository>();
|
|
services.AddScoped<IContractRepository, ContractRepository>();
|
|
services.AddScoped<IRevenueTrackingRepository, RevenueTrackingRepository>();
|
|
|
|
return services;
|
|
}
|
|
}
|