Drizin / CodegenCS

C# Toolkit for Code Generation (T4 alternative!)
MIT License
223 stars 30 forks source link

CodeGenCs by Importing class attributes Metadata from Excel #5

Closed fasteddys closed 2 years ago

fasteddys commented 2 years ago

Hello this a nice place to keep the meta data of my projects. I used to have an excel spreadsheet with the table names & two Cols for the name and type, I would like to import that into your project - so I can generate the model objects from from here.

Excel Col - ClassName 
Excel Col - AtrributeName
Excel Col - Type

How can I template this excel sheet to a simple C# POCO model class with the name and type

Drizin commented 2 years ago

You can adjust the POCO template to read from XLSX instead of reading from json schema. Try EPPlus library: https://github.com/EPPlusSoftware/EPPlus

fasteddys commented 2 years ago

would be nice to have it native, but i get your point thx.