---
title: "Discussion on \"How to Scaffold Controllers with database views to EF Core 2.1\" | Hashnode"
description: "Discussion on \"How to Scaffold Controllers with database views to EF Core 2.1\". How to Scaffold Controllers with database views to EF Core 2.1\n\nCreate a view in the database.\n\nCreate a POCO with the same structure as the view.\n\nAdd a new Controller with POCO created in step#2 a. If key related error occurs, add a Key attribute o..."
url: "https://hashnode.com/posts/how-to-scaffold-controllers-with-database-views-to-ef-core-21/6499bd185244606d9b5ff8bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Scaffold Controllers with database views to EF Core 2.1](https://read.satishyadav.com/how-to-scaffold-controllers-with-database-views-to-ef-core-21?utm_source=hashnode&utm_medium=feed)

How to Scaffold Controllers with database views to EF Core 2.1 Create a view in the database. Create a POCO with the same structure as the view. Add a new Controller with POCO created in step#2 a. If key related error occurs, add a Key attribute o...

Oct 11, 2018 · 1 min read · read.satishyadav.com  
Updated Jan 15, 2025  
Read the article

-   [#entity-framework](https://hashnode.com/tag/entity-framework)
-   [#efcore](https://hashnode.com/tag/efcore)
-   [#view](https://hashnode.com/tag/view)
-   [#sql-server](https://hashnode.com/tag/sql-server)

## Written by

[Satish Yadav](https://hashnode.com/@iSatish)

@iSatish · Mumbai

  
[View profile](https://hashnode.com/@iSatish)

Turns Coffee Into Code

Manager — SDE

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
