Doubt in the study of the Code First development approach

Asked

Viewed 69 times

2

Galera I am studying the development approaches used in Entity Framework 6 the approaches Model First and Database First found good content easily on the internet and I was able to understand , but the approach Code First is really complicated to find the specific content of version 6, can I study the code first using the examples of versions 4.1 ? really changes so much stuff like that ?

  • 1

    Yes, can use, there are some differences, but nothing usual, by the way, I always found the opposite, code first material is much bigger

  • Yes , but because I found a lot with the staff using version 4.1 I was kind of in doubt

1 answer

2


I can study the code first using the 4.1 version examples?

You can but avoid using the EDMX approach, which is already outdated. The best tutorial I know is this and soon I should be writing a course in Portuguese with several additions. If interested, only manifest by comment.

It really changes so much?

The point is that a lot of things have been abandoned, like the one I told you about the EDMX above. The problem with EDMX is that it requires the central template file to be always up-to-date, and does not allow a very extensive tailoring of the fields and validations of its Models.

Today the approach focuses on leaving the programmer as free as possible to the design possibilities, and the EDMX It greatly enhances this.

  • I am interested in the course for Code First. I have the same problem as my colleague, very much in the other models and Codefirst almost nothing. I’m learning a lot from the log, but it could be more agile. I have other doubts like VS Fluentapi dataannotations, but the learning curve is much better than in Java. The cool of EDMX I think is the ability to macro-visualize relationships, pity that everything I read informs that the same is getting out of use, has some other tool that brings the visualization of relationships the way that EDMX does?

  • There is, but in a more agnostic way. I only recommend using EDMX for initial modeling. Then it’s just not worth it to keep using, because EDMX generates all the Models again and ends with the tailoring shop. I will be writing this course this end of year and will warn all interested.

  • 1

    I’m using only for the very initial part, however all validation and adjustments it bursts in the first change.

  • Exactly. This motivated me to write the course. Soon I will start to disclose here and I warn you.

  • 1

    Oops, I’m interested too!

  • 1

    I have interest please comment here when available =D

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.