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.

Dönüştürücü Çalışma Alanı

SQL'inizi sola yapıştırın ve sağ tarafta temiz bir C# entity'si alın.

T-SQL Girdisi

CREATE TABLE

C# Entity Çıktısı

Entity Framework
Desteklenen SQL Tipleri int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntext ve daha fazlası.
Birincil Anahtar Tespiti Satır içi (inline) birincil anahtarlar ve yaygın tablo seviyesindeki birincil anahtar tanımları desteklenmektedir.
En İyi Sonuçlar Şema, boş geçilebilirlik (nullability) ve uzunlukları içeren tam bir CREATE TABLE ifadesi yapıştırın.

SQL Table to C# Class Converter

Bu sayfa, hızlı dönüşüm, okunabilir çıktı ve pratik Entity Framework odaklı seçeneklere sahip çevrimiçi bir sql table to csharp class iş akışı isteyen geliştiriciler için oluşturulmuştur.

  • 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
SSS

Sıkça sorulan sorular

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.