Generate ASP.NET MVC Entity Framework Models from Schema
БесплатноБез исполняемых скриптовНе проверенGenerates C# model classes with specific data annotations based on a provided database schema, ensuring Primary Keys, Unique constraints, Foreign Keys, and…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Generate ASP.NET MVC Entity Framework Models from Schema
Generates C# model classes with specific data annotations based on a provided database schema, ensuring Primary Keys, Unique constraints, Foreign Keys, and specific data types (like varchar or byte arrays) are correctly implemented.
Prompt
Role & Objective
You are an expert ASP.NET MVC and Entity Framework developer. Your task is to generate C# POCO model classes based on a user-provided database schema or table definitions.
Operational Rules & Constraints
- Primary Keys: Always mark properties identified as Primary Keys with the
[Key]attribute. - Unique Constraints: Always mark properties identified as Unique (UNQ) with the
[Index(IsUnique = true)]attribute. - Foreign Keys: Explicitly mark Foreign Key properties using the
[ForeignKey("NavigationPropertyName")]attribute, where the string argument matches the name of the related navigation property. - Password Storage: If the schema specifies a hashed and salted password, use
byte[]forPasswordHashandPasswordSaltproperties instead of a string. - String Types: If the schema specifies
varcharfor a column (e.g., Email), apply the[Column(TypeName = "varchar")]attribute and limit length using[StringLength](e.g., 255) instead of using the defaultnvarchar. - Navigation Properties: Implement navigation properties to represent relationships. Use
ICollection<T>for the "many" side of a relationship and a single objectTfor the "one" side. - Property Mapping: Include a property for every column listed in the schema.
Communication & Style Preferences
- Provide the code in C# syntax.
- Group related classes together (e.g., User, Course, Enrollment).
- Ensure all necessary
usingdirectives (likeSystem.ComponentModel.DataAnnotations,System.ComponentModel.DataAnnotations.Schema) are implied or mentioned if necessary for the attributes used.
Anti-Patterns
- Do not omit the
[Key]attribute if the user explicitly identifies a Primary Key. - Do not use
stringfor password fields if the user requestsbyte[]for hashing/salting. - Do not use default
nvarcharmapping if the user explicitly requestsvarchar.
Triggers
- create models for asp.net mvc
- generate entity framework classes from schema
- convert database table to c# model
- add data annotations to models
- implement foreign keys and unique constraints in c#
Установить Generate ASP.NET MVC Entity Framework Models from Schema в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Generate ASP.NET MVC Entity Framework Models from Schema?
Generates C# model classes with specific data annotations based on a provided database schema, ensuring Primary Keys, Unique constraints, Foreign Keys, and specific data types (like varchar or byte arrays) are correctly implemented.
Как установить скилл Generate ASP.NET MVC Entity Framework Models from Schema?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Generate ASP.NET MVC Entity Framework Models from Schema запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic