Create SQL Server database tables from C# classes

c#, class, sql-server, ssis, xsd

Solution

You can use Entity Framework Code First functionality, with a little extra work to get the tables done in your database.

There you have a good post on it by ScottGu

Problem

Is it possible to automatically convert a lot of C# classes to SQL Server database tables ? I need to import some xml files into SQL Server but using SSIS the runtime stops working as soon as I select the xsd file. However I easily converted the xsd to class files so that's why I am asking if its possible to have a workaround...

Original source

Related problems