Developer Tools

Convert CREATE TABLE scripts to C# classes

Paste a SQL Server CREATE TABLE script and instantly generate a clean C# model class with nullable type support and optional Entity Framework attributes.

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

左側に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ステートメントを貼り付けてください。

CREATE TABLE to C# Class Converter

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

  • Convert SQL Server CREATE TABLE scripts into C# model classes
  • Generate properties from SQL column names and data types
  • Map nullable columns to nullable C# reference and value types
  • Optionally include [Table], [Column], [Key] and [MaxLength] attributes
よくある質問

よくある質問と回答

Can I convert a CREATE TABLE script to a C# class?

Yes. Paste a SQL Server CREATE TABLE script and the tool generates a clean C# class from the table structure.

Does it support SQL Server data types?

Yes. Common SQL Server types such as int, bigint, decimal, bit, datetime, uniqueidentifier, varchar and nvarchar are mapped to suitable C# types.

Can it generate Entity Framework attributes?

Yes. You can enable attributes such as [Table], [Column], [Key] and [MaxLength] depending on your preferred output style.