Developer Tools

Convert SQL Server tables to Entity Framework models

Transform SQL Server CREATE TABLE scripts into EF-ready C# entity classes with clean property names, type mapping and annotation support.

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.

SQL Server to Entity Framework Model

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 server to entity framework 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 EF-style model classes from SQL Server table definitions
  • Convert SQL Server column types to matching C# property types
  • Support nullable SQL columns and optional required attributes
  • Speed up database-first Entity Framework model creation
Câu hỏi thường gặp

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

Can I generate Entity Framework models from SQL Server tables?

Yes. Paste your SQL Server CREATE TABLE script and generate a C# entity model suitable for Entity Framework workflows.

Does the output work with EF Core?

The generated class is designed for Entity Framework-style workflows and can be adapted for EF Core projects depending on your mapping preferences.

Can I include table and column attributes?

Yes. Attribute options can be enabled to generate annotations like [Table], [Column], [Key] and [MaxLength].