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.

コンバーターワークスペース

左側に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 Server to Entity Framework Model

このページは、高速な変換、読みやすい出力、および実用的なEntity Framework指向のオプションを備えたオンラインsql server to 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
よくある質問

よくある質問と回答

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