Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tools to convert database tables to C# classes [closed]

Is there any free tool or plug-in for Visual Studio to convert the SQL tables to entity, model, facade and DAO classes? I am working on SQL Server 2008, Visual Studio 2008 and C#.

like image 374
Pavithra Jayakumar Avatar asked Oct 19 '10 15:10

Pavithra Jayakumar


People also ask

What is SCT tool?

The AWS Schema Conversion Tool (AWS SCT) makes heterogeneous database migrations predictable. It automatically converts the source database schema and a majority of the database code objects, including views, stored procedures, and functions, to a format compatible with the target database.

Is AWS SCT free?

AWS SCT is a free download available on the AWS website. You can install AWS SCT on any Windows, Fedora, macOS, or Ubuntu server that has access to your source and target databases.

Can we write C# code in SQL Server?

Various Programming Languages like C# and . Net are compatible with Oracle and Microsoft SQL Server. Also, they follow the same logic with each database in most cases. Here are a few concepts common for all Databases.

At which point do you use AWS schema conversion tool?

You can use the AWS Schema Conversion Tool (AWS SCT) to convert your existing database schema from one database engine to another. You can convert relational OLTP schema, or data warehouse schema.


2 Answers

Have you tried LINQ to SQL (although the future of LINQ to SQL is a bit vague)?

If you were using Visual Studio 2010 you'd get Entity Framework tooling in the box.

There's also NHibernate which has a variety of free tooling:

Free NHibernate helper tools? (Stack Overflow)

like image 101
Kev Avatar answered Oct 25 '22 22:10

Kev


Try using SQLMetal from Microsoft. The files aren't pretty, but they work and also provide LINQ functionality. It's also free :)

I've used it first hand, and it works very well. The beauty of it is, it generates everything from one command.

Hope this helps.

like image 45
Dave Avatar answered Oct 25 '22 23:10

Dave