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.
T-SQL вход
CREATE TABLEИзход на C# Entity
Entity Framework
Поддържани SQL типове
int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntext и други.
Откриване на първичен ключ
Поддържат се вградени (inline) първични ключове и общи дефиниции на първични ключове на ниво таблица.
Най-добри резултати
Поставете пълен CREATE TABLE оператор, включително схема, възможност за null и дължини.
CREATE TABLE to C# Class Converter
Тази страница е създадена за разработчици, които искат онлайн create table to csharp работен процес с бързо конвертиране, четим изход и практични опции, ориентирани към 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
ЧЗВ
Често задавани въпроси
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.