Posts by Diego Moura • 118 points
6 posts
-
0
votes1
answer43
viewsA: Relationship belongsToMany does not return duplicates
N:M relationships in Sequelize.js ignore duplicate lines even the query returns values correctly. A possible solution is to replace the belongsToMany relationship for two hasMany with the Junction…
sequelize-jsanswered Diego Moura 118 -
0
votes1
answer43
viewsQ: Relationship belongsToMany does not return duplicates
I have the following models: module.exports = (sequelize, DataTypes) => { const TestPlans = sequelize.define('TestPlans', { name: { type: DataTypes.STRING, allowNull: false, } })…
sequelize-jsasked Diego Moura 118 -
2
votes2
answers44
viewsA: Why is Directoryinfo.Exists true after deleting the directory?
Researching a little more, I saw that the correct one would be to use directory2.Refresh(); after the directory2.Delete();
c#answered Diego Moura 118 -
2
votes2
answers44
viewsQ: Why is Directoryinfo.Exists true after deleting the directory?
In the following code var Directory_02 = "TEST_01"; DirectoryInfo directory2 = new DirectoryInfo(Directory_02); directory2.Create(); if (directory2.Exists) { System.Console.WriteLine("{0} exists:…
c#asked Diego Moura 118 -
6
votes2
answers2703
viewsA: Inside Visual Studio 2015 how to reverse/undo a commit in Git?
For the English language version: Team Explore > Branchs > Right click on Branch > View History A list will appear with the commits, right clicking on some you have the option of Revert.…
-
0
votes1
answer40
viewsQ: Error trying to reinstall Python
My Python was installed on partition "D:" (on a normal HD) and my OS on "C:" (on an SSD). I moved the SDD (Partition "C:") from my old computer to a new one and tried to reinstall python in it, but…
python-3.xasked Diego Moura 118