@echo off
cd ..\src\Strata.Code.DataAccess
dotnet ef dbcontext scaffold^
 "Server=54.71.217.228,1433;Database=st-database;User=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;"^
 Microsoft.EntityFrameworkCore.SqlServer^
 --project Strata.Code.DataAccess.csproj^
 --context-dir Data^
 --output-dir Models^
 --context OnePlanDbContext^
 --force^
 --data-annotations^
 --no-onconfiguring^
 -t fp.AddProviderEncountersDataForCharges^
 -t fp.AddProviderSummary^
 -t fp.AdjustmentChunkingConfiguration^
 -t fp.APEDepartmentWorkflowStatus^
 -t fp.APEWorkflow^
 -t fp.BenefitsSpreads^
 -t fp.BudgetConfig^
 -t fp.BudgetConfigDefaultSetting^
 -t fp.BudgetConfigSetting^
 -t fp.BudgetRefreshRequest^
 -t fp.BudgetRefreshRequestHistory^
 -t fp.ChargeVolumeAddProviderAdjustment^
 -t fp.ChargeVolumeSpreads^
 -t fp.DataRefreshTargetThreshold^
 -t fp.DepartmentChargeVolumeAdjustment^
 -t fp.DepartmentConfig^
 -t fp.DimCategory^
 -t fw.DimDepartment^
 -t dss.DimPhysician^
 -t fp.EngineLog^
 -t fp.EntityGroupConfig^
 -t fp.FixChangeHistoryRequest^
 -t fp.GeneralLedger^
 -t fp.GeneralLedgerInitialPlanConfigDetail^
 -t fp.GeneralLedgerSpreads^
 -t fp.InitialPlanRule^
 -t dbo.LOCK^
 -t dbo.log^
 -t dbo.OnePlanPerformanceTestHistory^
 -t fp.OnePlanPerformanceTestValidationResult^
 -t fp.PerformanceTestingSetting^
 -t fp.ProviderCompensationSpreads^
 -t fp.SamplingLog^
 -t fp.ScheduledRefreshRequest^
 -t fp.ServiceLineEncounterSpreads^
 -t fp.SettingCategory^
 -t fp.SpreadHistory^
 -t fp.StaffingInitialPlanConfigDetail^
 -t fp.StaffingSpreads^
 -t fp.StatisticsSpreads^
 -t fp.SystemSetting^
 -t dbo.TEScheduledTask^
 -t dbo.UserProfile^
 -t fp.viewBenefitsAdjustment^
 -t fp.viewDepartmentChargeVolumeAdjustment^
 -t fp.viewGeneralLedgerAdjustment^
 -t fp.viewReimbursementAdjustment^
 -t fp.viewReimbursementGeneralLedgerAdjustment^
 -t fp.viewServiceLineEncounterAdjustment^
 -t fp.viewStaffingAdjustment^
 -t fp.viewStatisticsAdjustment
pause