In css the last value you set to a property is
what matters... In the code you posted, the
margin-top: 10px will be overriden by margin: auto
(the top margin will be set to auto)
If you move the margin:auto as the first
element, then your top margin will have 10 pixels.
You can also force a value using marging-top: 10px
!important, but that is hard to mantain if you use
it a lot.
your example doesn't show property injection. your example shows the
container being used outside of the Composition Root which is a bad
idea. Generally you should construct your object graph in a single
place, the afore mentioned Composition Root, and should not allow your
container to be used outside of this location.
You should prefer constructor injection over property injection, and
Yes. it looks that you are right and text will be update twice. The
height: width - 100
text: "value is " + (parent.width + parent.height)
console.log("text was changed (" + parent.width + "," +
parent.height + ")");
The collation is not BINARY. It is CI case insensitive, so it will
fold upper and lowercase characters to sort the same. It defines the
sort order of punctuation and digits in a non-ASCII way as you have
discovered. It is a SQL collation, doing what SQL collations do:
define the sort order according to some particular rules.
do you have an inverseattribute above MenuID in other EF entities?
would you have a look at a similar example here:
also this one: http://stackoverflow.com/a/25646025/3316279