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.
Đầ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.
SQL 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 sql table to csharp class 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 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
Câu hỏi thường gặp
Các câu hỏi thường gặp
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.