|
BTW - the way to configure Postgres style naming is to use a snake name casing setting. Here's one I used earlier:
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ??
throw new InvalidOperationException("Connection string 'DefaultConnection' not found.");
builder.Services.AddDbContext<ApplicationDbContext>(options =>
{
options.UseNpgsql(connectionString, o => o.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery))
.UseSnakeCaseNamingConvention()
.ConfigureWarnings(warnings => warnings.Throw(RelationalEventId.QueryPossibleUnintendedUseOfEqualsWarning));
}); You can also override the OnModelCreating to override the naming convention for your foreign keys:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
foreach (var relationship in modelBuilder.Model.GetEntityTypes().SelectMany(e => e.GetForeignKeys()))
{
relationship.SetConstraintName(relationship.GetConstraintName().Replace("_id", "_key"));
}
base.OnModelCreating(modelBuilder);
} But that's just CodeProject. Where people aren't always arsey and rep-hunting.
|
|
|
|
|
StackOverflow is great for a certain class of questions.
Anything more than simple things is hard to either ask a proper question or get a proper answer because there are too many variables.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Christian Graus wrote: EF
"Well, there's your problem." -- Adam savage
I've never used it, so I wouldn't know, but it seems like the kind of thing which is a reason not to use it.
Some colleagues of mine also say that the tools they use require that everything have a primary key, even when it provides no benefit, and I tell them to get better tools.
|
|
|
|
|
From my perspective (which I've shared here on more than one occasion), SO is great for small(-ish) snippets that just so happen to directly address what you came searching for. But it's not the place to ASK questions, unless you went in early and are already part of the clique and have the reputation points (or whatever system it is they're using). It's too much of a catch-22 to be newbie-friendly.
And without the equivalent of a lounge, it's not the place to make friends and become part of the clique either. Overall, I find it very unwelcoming. At least on CP, if you have a question, as long as you ask it intelligently and demonstrate you've put some effort into it (aka NOT "do my homework for me"), you'll get real, useful help.
I've found many answers on SO, typically as links Google provided as responses to my searches. But as I'm writing this, suddenly I realize I now tend to use ChatGPT to get code snippets, and as a result, haven't gone back / been redirected to SO for quite a while. ChatGPT undoubtedly scrapes SO for its info, but as long as it can provide usable answers, I find myself having no reason to go back to SO.
Recent events here on CP notwithstanding, personally I see SO as being the one with the more limited future. There, I said it.
|
|
|
|
|
I have found SO very useful, but I don't ask questions, I just search for answers and then compare the sometimes myriad results until I find the inspiration to produce a result relevant to me. Failing that, since I have already exhausted CP before going to SO, I reread M$ docs until the screaming dies down and and I figure it out myself!
- I would love to change the world, but they wonβt give me the source code.
|
|
|
|
|
Way back when I was still making the transition from VB6 which I was lucky to have been
a member of a interactive group moderated by John Smiley where the vibe was like CP
I had some real unpleasant encounters on SO might have been my wording for the questions
though I always explained I was a novice at VBNet every now and then a more polite person
would respond with a answer or a website with information to help with the question.
When I first joined Code Project it was to ask a question about VB.Net and Visual Studio
I was very lucky the response came from Original Griff need I say more.
YES every now and then the tone on CP is sharp and of no help but that is seldom
and I just take this members reply as he has forgotten what it was like to not
know what you are doing when trying to learn to code in a new language.
The big issue with SO has always been the idea of points for posting an answer
and begging for accepting the answer. The most worthless reply is one that goes like this
"You should NOT be doing it that way" with no reply how to do it I just delete the question which you can not do now
YES Stack Overflow is NOT of great value
|
|
|
|
|
I have found it to be a very good collection of knowledge from previously asked questions. I refrain from asking questions there though. Thankfully, I have rarely had a question that I did not find an answer for either here or there.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Wordle 1,195 4/6*
β¬β¬π©π¨β¬
β¬β¬π©β¬π¨
π©β¬π©β¬π¨
π©π©π©π©π©
|
|
|
|
|
Wordle 1,195 4/6
β¬π¨β¬β¬π¨
π¨π¨β¬β¬β¬
π©β¬β¬π¨π¨
π©π©π©π©π©
|
|
|
|
|
Wordle 1,195 4/6*
π¨β¬β¬β¬β¬
β¬β¬π©β¬π¨
β¬π©π©π©π¨
π©π©π©π©π©
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I gave this a go (have not played for ages).
I have a standard sequence of words. First - 2 letters. Second and third - nothing. Fourth - two letters. It was then I realised that high contrast was not on, and I thought my letters were in the correct place because I am color blind. Got it in the fifth
|
|
|
|
|
Wordle 1,195 4/6
β¬β¬π©π©β¬
β¬β¬π©π©β¬
π©β¬π©π©β¬
π©π©π©π©π©
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,195 3/6
β¬π¨π¨β¬β¬
β¬β¬π©β¬π¨
π©π©π©π©π©
|
|
|
|
|
Wordle 1.195 4/6
β¬π¨β¬β¬β¬
β¬β¬β¬π©β¬
π©β¬β¬π¨β¬
π©π©π©π©π©
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Wordle 1,195 4/6*
π¨π¨β¬π©β¬
β¬π¨β¬π©π¨
β¬π¨π©π©π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1,195 3/6*
β¬β¬π©π¨β¬
π©β¬π©β¬π©
π©π©π©π©π©
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 1,195 4/6
π¨β¬β¬β¬β¬
β¬π¨π©β¬π¨
β¬β¬π©π©π¨
π©π©π©π©π©
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,195 5/6
β¬π©β¬β¬β¬
π©π©β¬β¬β¬
π©π©β¬β¬β¬
π©π©β¬β¬β¬
π©π©π©π©π©
Within you lies the power for good - Use it!
|
|
|
|
|
Morass : excerpted from one of my emails today: "the [redacted] effort to support this died in the morass of approvals required to implement mining the data"
I think tomorrow's word will be quagmire (in the Vietnam War sense, not Family Guy).
Software Zen: delete this;
|
|
|
|
|
I think of something else when I see the word MoreAss.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
I almost used the phrase "python mating ball[^]" instead of "morass", but I knew my audience wouldn't get it.
Software Zen: delete this;
|
|
|
|
|
That's just peachy!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Could you describe the morass, sir?
|
|
|
|
|
Drone A punted it up to MasterDrone B, who wanted BrotherDrone C to chime in, and then B thought Group Ξ² should do the work, but somebody from Group ΞΎΞΈ said it was their responsibility, ...
Software Zen: delete this;
|
|
|
|
|
I learned of a phrase today id est "warp and woof". I am looking forward to an opportunity to utilize it.
|
|
|
|