Developer Tools

Convert SQL table definitions to C# classes

Generate strongly typed C# model classes from SQL table definitions and quickly copy or download the generated code.

مساحة عمل المحول

الصق 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 والمزيد.
اكتشاف المفتاح الأساسي يتم دعم المفاتيح الأساسية المضمنة وتعريفات المفاتيح الأساسية الشائعة على مستوى الجدول.
أفضل النتائج الصق عبارة CREATE TABLE كاملة بما في ذلك المخطط، وقابلية القيم الخالية، والأطوال.

SQL Table to C# Class Converter

تم تصميم هذه الصفحة للمطورين الذين يرغبون في سير عمل sql table to csharp class عبر الإنترنت مع تحويل سريع، ومخرجات قابلة للقراءة، وخيارات عملية موجهة نحو Entity Framework.

  • Convert SQL table columns into strongly typed C# properties
  • Use PascalCase property naming for cleaner model classes
  • Support common SQL Server data types and column lengths
  • Generate copy-ready C# output for application models
الأسئلة الشائعة

الأسئلة المتداولة

What is a SQL table to C# class converter?

It is a tool that reads a SQL table definition and generates a C# class with properties that match the table columns.

Can it convert SQL column names to PascalCase?

Yes. The converter can transform SQL-style names into PascalCase C# property names.

Can I use the generated class in .NET projects?

Yes. The generated class can be used as a starting point for .NET models, DTOs or Entity Framework entities.