Hello friends,
I am creating a project in ASP.NET and C # using the Entity.
I'm doing this: - View (aspx, html, jquery, etc..) - Controllers (one controller for each table in the database) - DAO (Entity Framework here) - Model ('m doing in hand for modeling classes and their attributes)
example:
1) In view InserirPessoa.aspx, click on the button: / / Calls the controladorPessoa
2) ControladorPessoa: / / Instantiate an object of type PessoaM PessoaM p = new () / / Pass the attributes for the DAO
3) In PersonDAO: / / Takes the object, is the persistence in the bank / / Returns the same object type PessoaM for ControladorPessoa
4) ControladorPessoa: / / Returns the object PessoaM to View
5) In view InserirPessoa: / / .... do what has to be done with the object ....
Can anyone help? What to fix? Where is wrong and which is right?
Thank you!
...

Go to the complete details ...