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.
Đầu vào T-SQL
CREATE TABLEĐầu ra Entity C#
Entity Framework
Các loại SQL được Hỗ trợ
int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntext và hơn thế nữa.
Phát hiện Khóa Chính
Hỗ trợ khóa chính nội tuyến (inline) và định nghĩa khóa chính cấp bảng phổ biến.
Kết quả Tốt nhất
Dán một câu lệnh CREATE TABLE đầy đủ bao gồm lược đồ, khả năng rỗng và độ dài.
CREATE TABLE to C# Class Converter
Trang này được xây dựng cho các nhà phát triển muốn có một quy trình làm việc create table to csharp trực tuyến với khả năng chuyển đổi nhanh, đầu ra dễ đọc và các tùy chọn thiết thực hướng đến 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
Câu hỏi thường gặp
Các câu hỏi thường gặp
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.