Posts by Liw. S. • 339 points
11 posts
-
0
votes1
answer57
viewsQ: Why does the one-to-many relationship in the Entity Framework by default not work?
[Table(name: "cliente", Schema = "estudo")] public class Cliente : Base { [Key, Column("COD_CLIENTE")] [Required] public override Int64 Id { get; set; } [Column("CLI_NOME")] [Required] public…
-
2
votes1
answer121
viewsQ: Play Framework - Which version is the most recommended to use?
I started trying to learn play framework and saw that until version 2.2.x everything was done from the concole by typing the command "play new, play run, etc" and, only that to run this version…
-
1
votes1
answer40
viewsA: In Jade, how can I suppress the error if a variable does not exist?
- if (typeof(user.name) !== 'undefined'){ //-aqui você coloca o seu código -} I think that solves.
-
7
votes2
answers7184
viewsQ: How to set a token in the header?
Well I use jwt to generate a token only that the example I was following didn’t show exactly how to paste the token into the application header. Would anyone know how? Note: I am using the express.…
-
2
votes2
answers2443
viewsA: req.Session in Node.js
it is installed separately using the "npm install express-Session --save command" then put this in your main file: app.use(session({ secret: '2C44-4D44-WppQ38S', resave: true, saveUninitialized:…
-
3
votes2
answers451
viewsQ: Nodejs - Token authentication?
I’m following a few examples here about authentication on and it’s working normal, but I’d like to know if passing the token through the URL would really be the right shape or if there’s any method…
-
0
votes1
answer682
viewsA: Node.js - Take URL parameter via Jade
Solution: notification: request.params.message This mode is in disuse: notification: request.param('message','')
-
1
votes1
answer682
viewsQ: Node.js - Take URL parameter via Jade
I have the following url http://localhost:3000/user/index/1, would like to get the last parameter. I tried with - var name = window.location.pathname; put in the file . jade and did not work, but if…
-
2
votes1
answer2858
viewsA: Node.js - Get input values?
var express = require("express"), http = require("http"), path = require("path"), bodyParser = require('body-parser'); app = express(); app.set('port', 3000); app.set('views', path.join(__dirname,…
-
3
votes1
answer2858
viewsQ: Node.js - Get input values?
There I go again. I have a function where a registration in the Mysql database is working. But while trying to get the data from an input I get the following error: Typeerror: Cannot read Property…
-
2
votes1
answer1050
viewsQ: Node.js - Function returning the query value?
It is the following I tried to search but I did not find any solution, to try to create a function in the model of my application that will return the data of the query in the database. This…