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#エンティティを取得します。

T-SQL入力

CREATE TABLE

C#エンティティ出力

Entity Framework
サポートされているSQLタイプ int, bigint, smallint, tinyint, bit, decimal, numeric, money, float, real, date, datetime, datetime2, time, uniqueidentifier, nvarchar, varchar, nchar, char, text, ntextなど。
主キーの検出 インラインの主キーおよび一般的なテーブルレベルの主キー定義がサポートされています。
最高の結果を得るために スキーマ、Null許容性、長さを含む完全なCREATE TABLEステートメントを貼り付けてください。

SQL to EF Model Generator

このページは、高速な変換、読みやすい出力、および実用的なEntity Framework指向のオプションを備えたオンラインsql to ef modelワークフローを求める開発者向けに構築されています。

  • 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.