Developer Tools

Convert CREATE TABLE scripts to C# classes

Paste a SQL Server CREATE TABLE script and instantly generate a clean C# model class with nullable type support and optional Entity Framework attributes.

Area di Lavoro Convertitore

Incolla il tuo SQL a sinistra e ottieni un'entità C# pulita a destra.

Input T-SQL

CREATE TABLE

Output Entity C#

Entity Framework
Tipi SQL Supportati int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntext e molti altri.
Rilevamento Chiave Primaria Sono supportate le chiavi primarie in linea e le definizioni comuni di chiave primaria a livello di tabella.
Migliori Risultati Incolla un'istruzione CREATE TABLE completa che includa schema, nullability e lunghezze.

CREATE TABLE to C# Class Converter

Questa pagina è stata creata per gli sviluppatori che desiderano un flusso di lavoro create table to csharp online con conversione rapida, output leggibile e opzioni pratiche orientate a Entity Framework.

  • Convert SQL Server CREATE TABLE scripts into C# model classes
  • Generate properties from SQL column names and data types
  • Map nullable columns to nullable C# reference and value types
  • Optionally include [Table], [Column], [Key] and [MaxLength] attributes
FAQ

Domande frequenti

Can I convert a CREATE TABLE script to a C# class?

Yes. Paste a SQL Server CREATE TABLE script and the tool generates a clean C# class from the table structure.

Does it support SQL Server data types?

Yes. Common SQL Server types such as int, bigint, decimal, bit, datetime, uniqueidentifier, varchar and nvarchar are mapped to suitable C# types.

Can it generate Entity Framework attributes?

Yes. You can enable attributes such as [Table], [Column], [Key] and [MaxLength] depending on your preferred output style.