ExcelBridge.Interfaces 1.0.3

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

The ExcelBridge package converts an xlsx file from/to a set of POCO objects.

Let us suppose we have a spreadsheet like:

Tab 1:

Tab 1

Tab 2:

Tab 2

A code like:

public class InstrumentPricesWorkbook 
{ 

       [EIMember( 
              SheetName = "Description", 
              Position = "B3" 
              )] 
       public string DocumentType { get; set; } 

       [EIMember( 
              SheetName = "Description", 
              Position = "B4" 
              )] 
       public string Origin { get; set; } 

       [EIMember( 
              SheetName = "Description", 
              Position = "B5", 
              DateTimeFormat = "dd/MM/yyyy" 
              )] 
       public DateTime CreatedDate { get; set; } 


       [EIList(SheetName = "Instruments", HeaderRow = 1)] 
       public List<Instrument> Instruments { get; set; } 

} 

 

 

public class Instrument 
{ 

       [EIColumn(Header = "ISIN")] 
       public string ISIN{ get; set; } 

       [EIColumn(Header = "Instrument Name")] 
       public string Name { get; set; } 

       [EIColumn(Header = "Bid Price")] 
       public decimal BidPrice { get; set; } 

       [EIColumn(Header = "Ask Price")] 
       public decimal AskPrice { get; set; } 

       [EIColumn(Header = "Mid Price")] 
       public decimal MidPrice { get; set; } 

} 

Will produce an InstrumentPricesWorkbook object like: (JSON encoded)

{
  "DocumentType": "List of instrument prices",
  "Origin": "Acme data provider",
  "CreatedDate": "2023-03-02T00:00:00",
  "Instruments": [
    {
      "ISIN": "FR0011401728",
      "Name": "Electricite de France (EDF), 6% perp., GBP",
      "BidPrice": 43.804,
      "AskPrice": 43.806,
      "MidPrice": 43.805
    },
    {
      "ISIN": "XS1083983376",
      "Name": "Pension Insurance Corporation PLC",
      "BidPrice": 264.61,
      "AskPrice": 264.63,
      "MidPrice": 264.62
    },
    {
      "ISIN": "NL0009805522",
      "Name": "Yandex (YNDX) Stock Price Quote",
      "BidPrice": 467.73,
      "AskPrice": 467.75,
      "MidPrice": 467.74
    },
    {
      "ISIN": "DE0007100000",
      "Name": "Mercedes-Benz Group AG (MBG)",
      "BidPrice": 17.26,
      "AskPrice": 17.28,
      "MidPrice": 17.27
    },
    {
      "ISIN": "IE0032571485",
      "Name": "Royal London Sterling Extra Yield Bond Fund A",
      "BidPrice": 5.4,
      "AskPrice": 5.6,
      "MidPrice": 5.5
    }
  ]
}
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 (1)

Showing the top 1 NuGet packages that depend on ExcelBridge.Interfaces:

Package Downloads
ExcelBridge.Functions

A useful package for reading from and writing to Excel files using POCOs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 355 6/20/2024
1.0.2 190 2/19/2024
1.0.1 237 2/15/2024
1.0.0 205 2/15/2024