Giter Site home page Giter Site logo

mgaticah / xls2object Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 88 KB

This little project aims to load data from excel and populate objects from an external assembly and bring those objects to the client of this toolkit.

C# 100.00%
csharp csharp-library excel-import reflection

xls2object's Introduction

xls2object

This little project aims to load data from excel and populate objects from an external assembly and bring those objects to the client of this toolkit.

Once i was asked to implement excel file imports to a system. So, firstable, i've asked for the source spreadsheet and its respective database model destination. To my surprise, none o them was already defined. So i had to think in a way to implement this functionality being able to read any excel file and transform its data into any kind of object i could once this be properly defined, and even able to adjust this process with fewer changes as possible in order to make it maintainable at lower possible cost.

The solution i've decide to apply was:

  • Create a json file with the rules to understand and read any excel file
  • In the same json file map the attributes of an object of an unknown and not referenced(by this toolkit) assembly to each excel cell.
  • Use reflection to create an instance of this class and populate its attributes with data found in the excel file according to the rules defined in the json file.

xls2object's People

Contributors

mgaticah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.