Developer Tools
Convert SQL table definitions to C# classes
Generate strongly typed C# model classes from SQL table definitions and quickly copy or download the generated code.
Entrada T-SQL
CREATE TABLESaída da Entidade C#
Entity Framework
Tipos SQL Suportados
int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntext e muito mais.
Detecção de Chave Primária
Chaves primárias inline e definições comuns de chave primária no nível da tabela são suportadas.
Melhores Resultados
Cole uma instrução CREATE TABLE completa, incluindo esquema, nulidade e comprimentos.
SQL Table to C# Class Converter
Esta página foi construída para desenvolvedores que desejam um fluxo de trabalho sql table to csharp class online com conversão rápida, saída legível e opções práticas orientadas ao Entity Framework.
- Convert SQL table columns into strongly typed C# properties
- Use PascalCase property naming for cleaner model classes
- Support common SQL Server data types and column lengths
- Generate copy-ready C# output for application models
FAQ
Perguntas frequentes
What is a SQL table to C# class converter?
It is a tool that reads a SQL table definition and generates a C# class with properties that match the table columns.
Can it convert SQL column names to PascalCase?
Yes. The converter can transform SQL-style names into PascalCase C# property names.
Can I use the generated class in .NET projects?
Yes. The generated class can be used as a starting point for .NET models, DTOs or Entity Framework entities.