Developer Tools

Generate EF model classes from SQL

Build EF-ready model classes from SQL Server table definitions in seconds with clean C# properties and optional data annotations.

Работно пространство на конвертора

Поставете вашия SQL отляво и получете изчистен C# обект (entity) отдясно.

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 и дължини.

SQL to EF Model Generator

Тази страница е създадена за разработчици, които искат онлайн sql to ef model работен процес с бързо конвертиране, четим изход и практични опции, ориентирани към Entity Framework.

  • Generate Entity Framework model classes from SQL scripts
  • Convert SQL Server columns into C# properties
  • Support primary key detection and common EF annotations
  • Create clean model classes for .NET and EF workflows
ЧЗВ

Често задавани въпроси

Can I generate an EF model from SQL?

Yes. Paste a SQL Server CREATE TABLE script and the tool generates an Entity Framework-style C# model class.

Does the generator detect primary keys?

The tool supports inline primary keys and common table-level primary key definitions.

Can I download the generated model?

Yes. You can copy the generated C# output or download it as a .cs file.