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.

Przestrzeń robocza Konwertera

Wklej kod SQL po lewej i uzyskaj czystą encję C# po prawej.

Wejście T-SQL

CREATE TABLE

Wyjście C# Entity

Entity Framework
Obsługiwane typy SQL int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntext i inne.
Wykrywanie Klucza Głównego Obsługiwane są podstawowe klucze śródliniowe (inline) oraz definicje kluczy głównych na poziomie tabeli.
Najlepsze Wyniki Wklej pełne polecenie CREATE TABLE zawierające schemat, możliwość przyjmowania wartości null i długości.

CREATE TABLE to C# Class Converter

Ta strona została stworzona dla programistów, którzy chcą internetowego przepływu pracy create table to csharp z szybką konwersją, czytelnym kodem wyjściowym i praktycznymi opcjami zorientowanymi na 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

Często zadawane pytania

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.