Entradas

ASP.NET MVC 5 Fundamentals

Imagen
Hello Im Fabian Calsina, Im writing this post as a complement to the repository mentioned below . All the theory described here was implemented in the current repository https://github.com/Fabho/dotnet_mvc_learning_repo It is a .Net mvc project that uses Entity framework and code first pattern to generate a small database. The project can be debugged from Visual Studio or deployed to an ISS server if you have an SQL database installed and a user with db owner permissions. Model View Controller (MVC) is an design pattern pattern that separates an application into three main layers: the model, the view, and the controller. .Net has its own implementation with several additional features. As can be seen in the image. -Everything starts with a user action in the View that translates into a request url. -A .net MVC Controller attends the request, obtaining and modifying the Model as necessary. -The Controller returns the Model and sends the information to the View . -The View is updated. ...

Object Oriented Programming

Imagen
Hello Im Fabian Calsina, Im writing this post as a complement to the repository mentioned below. All the theory describes here was implemented in the current repository https://github.com/Fabho/OOP_data_layer I must mention that I am writing this entry after I finished the course: Object-Oriented Programming Fundamentals in C# from Deborah Kurata If you want to follow the steps from the code you can run the test inside test project or attach debuggers. Why should I learn OOP? OOP is the foundation for many things clean code, api, design patterns, defensive coding, design apps in general. Class A class is like a template for objects. A class provides a definition of the objects, it has properties and methods. public class Cat { } Object Its an instance of a class. Objects are reference types, 2 objects will be equal if they reference the same object. var smallCat = new Cat(); Entity An entity is something significant and is or could be ...