---
title: "Discussion on \"Code First does not make any sense.\" | Hashnode"
description: "Discussion on \"Code First does not make any sense.\". I was developing my ORM and I found the next problem, should I allow code first or not? And it was my conclusion.\nWhat is Code First anyways?\nWhen we want to use an ORM (Object Relational Model) in our code, we have the next options:\n\nCreate the data..."
url: "https://hashnode.com/posts/code-first-does-not-make-any-sense/63fab79afb4255e5fc9c8969"
---

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

Discussion

# [Code First does not make any sense.](https://southprojects.com/code-first-does-not-make-any-sense?utm_source=hashnode&utm_medium=feed)

I was developing my ORM and I found the next problem, should I allow code first or not? And it was my conclusion. What is Code First anyways? When we want to use an ORM (Object Relational Model) in our code, we have the next options: Create the data...

Feb 26, 2023 · 3 min read · southprojects.com  
Read the article

-   [#database](https://hashnode.com/tag/database)
-   [#orm](https://hashnode.com/tag/orm)
-   [#programming](https://hashnode.com/tag/programming)
-   [#general-advice](https://hashnode.com/tag/general-advice)

## Written by

[Jorge Castro](https://hashnode.com/@JorgeCastro)

@JorgeCastro

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

Entrepreneur, Senior developer, Instructor

## Responses 1

Markdown supported · ⌘↵ to post

[Krishna](https://hashnode.com/@Krish159)

[Mar 2, 2023](https://hashnode.com/posts/code-first-does-not-make-any-sense/63fab79afb4255e5fc9c8969/comment/640012002b647366da4d6de6)

Sir how can we create database first without using the code. Please explain me sir ?

[Jorge Castro](https://hashnode.com/@JorgeCastro)

[Mar 4, 2023](https://hashnode.com/posts/code-first-does-not-make-any-sense/63fab79afb4255e5fc9c8969/comment/640012002b647366da4d6de6#reply-64032e426cc7b7a22094c045)

it depends on the language. On C# (entity framework) the tool Microsoft.EntityFrameworkCore.Tools allow "scaffold" the code

In Java, IntelliJ Ideas allows generating the classes from the database. Netbeans and Eclipse also have plugins that do this job.

In PHP (Laravel) there are model generators from the database.

Python Django has inspectdb that also does the job.
