Developer Tools

Convert T-SQL CREATE TABLE scripts to C# EF entities

Paste a SQL Server CREATE TABLE script and instantly generate a clean C# Entity Framework model class with type mapping, nullability and optional data annotations.

Không gian làm việc Trình chuyển đổi

Dán SQL của bạn ở bên trái và nhận một thực thể C# gọn gàng ở bên phải.

Đầ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.

T-SQL to Entity Framework Entity

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 to entity 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.

  • Generate C# entities from SQL Server CREATE TABLE scripts
  • Map SQL Server types to suitable C# property types
  • Support nullable columns and nullable C# reference/value types
  • Emit EF-style attributes like [Table], [Column], [Key] and [MaxLength]
  • Copy or download the generated .cs file instantly
Câu hỏi thường gặp

Các câu hỏi thường gặp

Can I convert SQL Server CREATE TABLE scripts to C# classes?

Yes. Paste a CREATE TABLE script and the tool generates a C# entity class from the table definition.

Does the tool support nullable SQL columns?

Yes. Nullable SQL columns are mapped to nullable C# types when appropriate.

Can I include Entity Framework attributes?

Yes. You can enable [Table], [Column], [Key], [MaxLength] and related annotations.

Can I use the generated class in EF Core?

Yes. The generated model can be used as a starting point for Entity Framework or EF Core entity classes.