Developer Tools

Convert SQL Server tables to Entity Framework models

Transform SQL Server CREATE TABLE scripts into EF-ready C# entity classes with clean property names, type mapping and annotation support.

Área de Trabalho do Conversor

Cole o seu SQL à esquerda e obtenha uma entidade C# limpa à direita.

Entrada T-SQL

CREATE TABLE

Saí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 Server to Entity Framework Model

Esta página foi construída para desenvolvedores que desejam um fluxo de trabalho sql server to entity framework online com conversão rápida, saída legível e opções práticas orientadas ao Entity Framework.

  • Generate EF-style model classes from SQL Server table definitions
  • Convert SQL Server column types to matching C# property types
  • Support nullable SQL columns and optional required attributes
  • Speed up database-first Entity Framework model creation
FAQ

Perguntas frequentes

Can I generate Entity Framework models from SQL Server tables?

Yes. Paste your SQL Server CREATE TABLE script and generate a C# entity model suitable for Entity Framework workflows.

Does the output work with EF Core?

The generated class is designed for Entity Framework-style workflows and can be adapted for EF Core projects depending on your mapping preferences.

Can I include table and column attributes?

Yes. Attribute options can be enabled to generate annotations like [Table], [Column], [Key] and [MaxLength].