Logit.Utils.Common 1.0.0

dotnet add package Logit.Utils.Common --version 1.0.0
                    
NuGet\Install-Package Logit.Utils.Common -Version 1.0.0
                    
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="Logit.Utils.Common" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Logit.Utils.Common" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Logit.Utils.Common" />
                    
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 Logit.Utils.Common --version 1.0.0
                    
#r "nuget: Logit.Utils.Common, 1.0.0"
                    
#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 Logit.Utils.Common@1.0.0
                    
#: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=Logit.Utils.Common&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Logit.Utils.Common&version=1.0.0
                    
Install as a Cake Tool

Logit.Utils.Common

📦 Descripción

Logit.Utils.Common es una librería utilitaria reutilizable para proyectos .NET, diseñada para centralizar funcionalidades comunes que pueden ser compartidas entre múltiples microservicios y aplicaciones.

Su propósito es reducir la duplicación de código, mejorar la mantenibilidad y establecer estándares técnicos dentro del ecosistema Logit.

Actualmente incluye utilidades orientadas a conversión de datos para escenarios de alto volumen como cargas masivas, procesamiento de Excel y operaciones con SQL Server.


🧱 Estructura del Proyecto

La librería está organizada de forma simple y extensible:

Logit.Utils.Common
│
├── Converters
│ └── TableConverter.cs

Esta estructura permite agregar nuevas utilidades en el futuro sin afectar los consumidores actuales del paquete.


🔄 Converters

TableConverter

La clase TableConverter permite convertir colecciones de objetos (IEnumerable<T>) en estructuras tabulares (DataTable) compatibles con SQL Server.

Está pensada para escenarios de alto rendimiento, donde se requiere procesar grandes volúmenes de información de forma eficiente.

Internamente utiliza reflexión optimizada para mapear las propiedades públicas de los objetos a columnas del DataTable.


📦 Instalación

Usando la CLI de .NET

dotnet add package Logit.Utils.Common

Usando el Administrador de Paquetes de NuGet

Install-Package Logit.Utils.Common

📌 Casos de uso típicos

  • Bulk Insert con SqlBulkCopy
  • Procesamiento masivo de archivos Excel
  • Integraciones con Dapper
  • Migraciones y cargas iniciales de datos
  • Procesos ETL simples
  • Importación de información desde sistemas externos

🧪 Ejemplo de uso

using Logit.Utils.Common.Converters;

var dataTable = TableConverter.ToDataTable(records);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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.
  • net8.0

    • No dependencies.

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.0.0 227 12/19/2025