First things first: you should make good use of the navigation properties whenever possible. The Join Query tool could be your friend if you don’t have any navigation properties but you still need to join[…]
Category: Programming
All about the world of programming a rocket
.NET MVC: Entity Framework Database First Approach Example
In this tutorial you are going to learn how to use the Entity Framework Database First approach, through an example, to build a website using ASP.NET MVC for the management of a Robot Dogs production.[…]
.NET MVC: Entity Framework Code First Approach Example
In this simple tutorial you are going to learn how to use the Entity Framework Code First approach, through an example, to build a website in ASP.NET MVC and create a database for the management[…]
ASP.NET MVC – What is a ViewModel?
A ViewModel could be simplified as the data that we pass to the view. So, that data could have many objects (other classes) or simple entities. We can apply some validation rules to that data,[…]
Model binding to a list of objects
You have created your edit or create page with your list of objects. It works nice, but when you submit your form the post method in the controllers shows.. Nothing. There is a simple way[…]
Create a model for MongoDB using Mongoose
Mongoose helps us build a model for MongoDB in a easy way. Create a folder called models in your root and add a new js file called post.js That’s the code: var mongoose = require(’mongoose’);[…]
Install Mongoose for MongoDB
First of all, open a console and fly to your project directory. Run the command: npm install –save mongoose You should see something like The “–save” parameter tell npm to add mongoose to the list[…]
Check node js version
Open a console and simply write: node -v
Check npm version
Do you want to check which npm version you are currently using? Open your powerfull console and type: npm -v If you want to update your version, follow this link: Update npm
Update npm package manager
Open a console and use this command to update your npm to the latest version: npm install npm@latest -g