John Nicholas

Manchester, United Kingdom

NA

Age: 34

slightly crazed .net junkie.

Developer since 2000. Consciously decided to go the MS route due to their tooling.

fairly serious guitarist (7 years or so - currently learning lots of old blues, Howling wolf etc) and am increasingly spending time getting back into Go.

Current specialisms: SQL, EF40 + T4, WCF, linq, lambda, silverlight4, moq, pex, moles - anything needed to get the job done really.

Sep
4
answered Why does a wave actually diffract?
Aug
20
comment What is a (proposed) “Record” class in C# 6?
kidna funny as there was nothing stopping you doing this by hand before - except that all the microsoft technologies depend on having writable properties for serialisation, orm layers etc. I hope this implies that they intend to change these so we can have objects with predictable state in the future. IE cool stuff, but how can you really use them given current state of play (no pun intended)
Aug
9
awarded Popular Question
Aug
4
comment Inserting data with Dapper with DateTime2 throws SqlDateTime overflow exception
also the line number is now wrong, can you link to the function or test instead? (I don't know if you can)
Jul
30
revised Fill value by default form in .NET
added 243 characters in body
Jul
30
answered Fill value by default form in .NET
Jul
30
awarded Autobiographer
Jul
30
comment How can I test out my equipment before a backpacking trip?
Having something and discovering it isn't suitable for the role you require it for are 2 very very different things. It could be as simple as antiseptic wipes that are far too dry all the way up to densities of cloth for bandages. Many first aid kits rapidly become wholey inadequate as you approach the extremes of injuries you really need to treat - yet a cursory examination or check list would find them equal.
Jul
26
accepted mvc begin form cant make routing override work
Jul
26
comment mvc begin form cant make routing override work
'Response.Form' seems to be 'HttpContext.Request.Form' as Response has no form property. An you add a code snippet fro the var name thing please. I couldn't get that working still. It will be a great workaround if i cant get that bind prefix working.
Jul
26
comment mvc begin form cant make routing override work
I foudn this I foudn this: stackoverflow.com/questions/6270115/… but couldn't get that working either ... but couldnt get it working in mvc5. still playing with that though
Jul
26
comment mvc begin form cant make routing override work
that var name trick didn't work - no textbox was displayed. other info is very useful though thanks. Would still like to know ow to bind parts of the viewmodel to arbitrarily named parameters though. I much prefer to explicitly hook stuff up.
Jul
26
revised mvc begin form cant make routing override work
added 370 characters in body
Jul
26
comment mvc begin form cant make routing override work
I said this is what i did not want to do. I Want to return the model part of the viewmodel - NOT the viewmodel. I actually just want to return 4 fields from the model rather than the whole thing (which is edited down here - but as i said above that is my next problem) There is an override that seems to do what i want - i am asking how to make that work. There are many situations where you do not want to return the entire viewmodel because you only want a small portion of its data. However you gave me an idea
Jul
26
comment mvc begin form cant make routing override work
cool that's interesting and might solve a different problem (and let me do what i really want to do) ... how would i name the parameter so it could automagically bind to the input "GameEvent.Name" as above?
Jul
26
revised mvc begin form cant make routing override work
added 2188 characters in body
Jul
26
comment mvc begin form cant make routing override work
ill edit to include that code then ... 1 sec
Jul
26
asked mvc begin form cant make routing override work
Jul
20
awarded Excavator
Jul
20
revised Unit Testing ASP.NET MVC5 App
fixed a typo
1 2 3 4 5