Atualiza dependências e corrige bugs em Program.cs
Atualização de dependências no arquivo `Pipefy.csproj`: - Bibliotecas do EntityFrameworkCore e outras foram atualizadas para a versão `9.0.9`. - `Newtonsoft.Json` foi atualizado para a versão `13.0.4`. Alterações no arquivo `Program.cs`: - Assinatura do método `Main` alterada para não aceitar argumentos. - Correção no cálculo do comprimento de `modalidade` com operador de coalescência nula para evitar exceções. - Ajuste na exibição do tempo restante, removendo chamada desnecessária ao método `ToString()`.
This commit is contained in:
parent
d18b736e36
commit
154e2a64b3
@ -10,17 +10,17 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Dapper" Version="2.1.66" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0">
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.9" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.9">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="System.Data.OleDb" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.9" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.9" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.9" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.9" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
<PackageReference Include="System.Data.OleDb" Version="9.0.9" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -16,7 +16,7 @@ class Program
|
||||
{
|
||||
endTime = date;
|
||||
}
|
||||
static async Task Main(string[] args)
|
||||
static async Task Main()
|
||||
{
|
||||
// Setup DI
|
||||
var serviceCollection = new ServiceCollection();
|
||||
@ -59,7 +59,7 @@ class Program
|
||||
await pipefyApi.CreateRecordsAsync(AppSettings.PIPEFY_TABLE_ID, recordsMissingInJson);
|
||||
int maxCId = recordsMissingInJson.OrderByDescending(s => s.c_digo_smart!.Length).First().c_digo_smart!.Length;
|
||||
int maxCNome = recordsMissingInJson.OrderByDescending(s => s.nome_da_empresa!.Length).First().nome_da_empresa!.Length;
|
||||
int maxCMod = recordsMissingInJson.OrderByDescending(s => s.modalidade!.Length).First().modalidade!.Length;
|
||||
int maxCMod = recordsMissingInJson.OrderByDescending(s => (s.modalidade ?? "").Length).First().modalidade!.Length;
|
||||
int maxCGestao = recordsMissingInJson.OrderByDescending(s => s.gestores!.Length).First().gestores!.Length;
|
||||
foreach (var record in recordsMissingInJson)
|
||||
{
|
||||
@ -92,6 +92,6 @@ class Program
|
||||
}
|
||||
private static void OnTimerElapsed(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
Console.Write($"\rEncerrando em {endTime.Subtract(e.SignalTime).Seconds.ToString()}");
|
||||
Console.Write($"\rEncerrando em {endTime.Subtract(e.SignalTime).Seconds}");
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user