[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F4M5EMBTQJRMPW1VE6R8Z4":3,"skill-same:01M6F4M5EMBTQJRMPW1VE6R8Z4":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M6F4M5EMBTQJRMPW1VE6R8Z4","ef-core",null,"Get best practices for Entity Framework Core","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fgithub\u002Fawesome-copilot\u002Fef-core\u002FSKILL.md",[],[19,20,21,22,23,24,25],"core","ef core","best practices","framework","framework core","get","entity framework core","2026-11-10 10:12:30",false,"---\nname: ef-core\ndescription: 'Get best practices for Entity Framework Core'\n---\n\n# Entity Framework Core Best Practices\n\nYour goal is to help me follow best practices when working with Entity Framework Core.\n\n## Data Context Design\n\n- Keep DbContext classes focused and cohesive\n- Use constructor injection for configuration options\n- Override OnModelCreating for fluent API configuration\n- Separate entity configurations using IEntityTypeConfiguration\n- Consider using DbContextFactory pattern for console apps or tests\n\n## Entity Design\n\n- Use meaningful primary keys (consider natural vs surrogate keys)\n- Implement proper relationships (one-to-one, one-to-many, many-to-many)\n- Use data annotations or fluent API for constraints and validations\n- Implement appropriate navigational properties\n- Consider using owned entity types for value objects\n\n## Performance\n\n- Use AsNoTracking() for read-only queries\n- Implement pagination for large result sets with Skip() and Take()\n- Use Include() to eager load related entities when needed\n- Consider projection (Select) to retrieve only required fields\n- Use compiled queries for frequently executed queries\n- Avoid N+1 query problems by properly including related data\n\n## Migrations\n\n- Create small, focused migrations\n- Name migrations descriptively\n- Verify migration SQL scripts before applying to production\n- Consider using migration bundles for deployment\n- Add data seeding through migrations when appropriate\n\n## Querying\n\n- Use IQueryable judiciously and understand when queries execute\n- Prefer strongly-typed LINQ queries over raw SQL\n- Use appropriate query operators (Where, OrderBy, GroupBy)\n- Consider database functions for complex operations\n- Implement specifications pattern for reusable queries\n\n## Change Tracking & Saving\n\n- Use appropriate change tracking strategies\n- Batch your SaveChanges() calls\n- Implement concurrency control for multi-user scenarios\n- Consider using transactions for multiple operations\n- Use appropriate DbContext lifetimes (scoped for web apps)\n\n## Security\n\n- Avoid SQL injection by using parameterized queries\n- Implement appropriate data access permissions\n- Be careful with raw SQL queries\n- Consider data encryption for sensitive information\n- Use migrations to manage database user permissions\n\n## Testing\n\n- Use in-memory database provider for unit tests\n- Create separate testing contexts with SQLite for integration tests\n- Mock DbContext and DbSet for pure unit tests\n- Test migrations in isolated environments\n- Consider snapshot testing for model changes\n\nWhen reviewing my EF Core code, identify issues and suggest improvements that follow these best practices.\n\n","# Entity Framework Core Best Practices\n\nYour goal is to help me follow best practices when working with Entity Framework Core.\n\n## Data Context Design\n\n- Keep DbContext classes focused and cohesive\n- Use constructor injection for configuration options\n- Override OnModelCreating for fluent API configuration\n- Separate entity configurations using IEntityTypeConfiguration\n- Consider using DbContextFactory pattern for console apps or tests\n\n## Entity Design\n\n- Use meaningful primary keys (consider natural vs surrogate keys)\n- Implement proper relationships (one-to-one, one-to-many, many-to-many)\n- Use data annotations or fluent API for constraints and validations\n- Implement appropriate navigational properties\n- Consider using owned entity types for value objects\n\n## Performance\n\n- Use AsNoTracking() for read-only queries\n- Implement pagination for large result sets with Skip() and Take()\n- Use Include() to eager load related entities when needed\n- Consider projection (Select) to retrieve only required fields\n- Use compiled queries for frequently executed queries\n- Avoid N+1 query problems by properly including related data\n\n## Migrations\n\n- Create small, focused migrations\n- Name migrations descriptively\n- Verify migration SQL scripts before applying to production\n- Consider using migration bundles for deployment\n- Add data seeding through migrations when appropriate\n\n## Querying\n\n- Use IQueryable judiciously and understand when queries execute\n- Prefer strongly-typed LINQ queries over raw SQL\n- Use appropriate query operators (Where, OrderBy, GroupBy)\n- Consider database functions for complex operations\n- Implement specifications pattern for reusable queries\n\n## Change Tracking & Saving\n\n- Use appropriate change tracking strategies\n- Batch your SaveChanges() calls\n- Implement concurrency control for multi-user scenarios\n- Consider using transactions for multiple operations\n- Use appropriate DbContext lifetimes (scoped for web apps)\n\n## Security\n\n- Avoid SQL injection by using parameterized queries\n- Implement appropriate data access permissions\n- Be careful with raw SQL queries\n- Consider data encryption for sensitive information\n- Use migrations to manage database user permissions\n\n## Testing\n\n- Use in-memory database provider for unit tests\n- Create separate testing contexts with SQLite for integration tests\n- Mock DbContext and DbSet for pure unit tests\n- Test migrations in isolated environments\n- Consider snapshot testing for model changes\n\nWhen reviewing my EF Core code, identify issues and suggest improvements that follow these best practices.\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fgithub\u002Fawesome-copilot\u002Fef-core",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ef-core",{"tool":46,"command":47},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ef-core",{"tool":49,"command":50},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ef-core","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fgithub\u002Fawesome-copilot\u002Fef-core\u002FSKILL.md",true,[],[55,64,73,82,88,94],{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":26},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[61,62,63],"model","model hierarchy","model hierarchy skill",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":26},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[70,71,72],"MCP","zoom","zoom mcp",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":26},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[79,80,81,71],"sdk","zoom apps sdk","apps",{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":26},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":26},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[90],{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":26},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[96]]