|
Ofcourse: what is if something is changing? Mostly adding or changing a type.
At least you need some robust error handling with a clear message what to do.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
|
Saved me the effort of finding my article.
|
|
|
|
|
|
I do that often enough, and I don't like it, but it's necessary.
I often use have a method that verifies that the DB and enum match. Better than nothing, especially while developing, and the enum can change. If I don't do that, I put in a SCREAMING COMMENT that the enum and DB lookup table must match.
Marc
|
|
|
|
|
No, but you're looking at it backward.
You should have such a table in your database, so you can have referential integrity and such.
Then you may define an enumerated type that matches it, to serve the same function in your code.
Having a technique to generate that enumerated type from the database (before or at compile time) is a rather simple task.
I did it my way:
GenOmatic[^]
|
|
|
|
|
Hi All,
So we have Brexeted but I have the feeling this is not done by a long shot because Scotland that has an elected body both came down on the stay side. Now the important WTF am I doing I type a couple of nicely worded Emails and sent them to the opposite companies so ' Dear Company A' was sent to company B and 'Dear Company B' was sent to company A!
|
|
|
|
|
Maybe, just maybe, you should take a little break from the pub?
|
|
|
|
|
glennPattonInThePUB wrote: Scotland and Wales that have elected bodies both came down on the stay side. The results I saw showed that Scotland and Northern Ireland voted Remain, but Wales voted Leave.
|
|
|
|
|
Yup, I have no idea what I am typing today Wales is a leaver, Northern Ireland stoopid!
|
|
|
|
|
glennPattonInThePUB wrote: Scotland that has an elected body both came down on the stay side
Scot and Land are two countries?
|
|
|
|
|
I need to start drinking earlier!
|
|
|
|
|
You could argue that certainly. I've often wondered whether an independent Scotland would result in a campaign for independent Gaelland and Scotland before long.
I am not a number. I am a ... no, wait!
|
|
|
|
|
I wouldn't worry. a) they probably won't read your email and b) if they do, they probably won't notice.
Marc
|
|
|
|
|
Considering the events of last night in the UK
Racing one around could be blissful ? (9)
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Ignorance - love the hint - very, very apt!
|
|
|
|
|
Thank you - you are up on Monday - I tried to compile one for Black Friday but could only come up with pathetically easy anagrams.
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Boycott Crusoe's man for a bad day at the market (5,6)?
|
|
|
|
|
Black Friday.. too easy
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Sounds like a dark day for Scottish food markets?
"Black Fry Day?"
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
V good but I was trying to involve the events of yesterday - try again
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
pkfox wrote: V good but I was trying to involve the events of yesterday - try again
Fair point, how about:
Boycott Crusoe's man for the inevitable consequences of Nigel's nonsense (5,6)?
|
|
|
|
|
Back in the '90s he was the but of all jokes on 'Have I Got News For You', a very popular British political satire game show, and now it looks like he is going to get the party leadership.
If anyone it should have been Farage, shame the rest of his 'party' is a a complete joke!
|
|
|
|
|
Boris has 3 months to drop out of favour, I'm sure he will.
|
|
|
|
|
Butt even
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|