|
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.
|
|
|
|
|
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!
|
|
|
|
|
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.
|
|
|
|
|
woof, also know as weft!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
My son-in-law's mother could help you with that. She's a master weaver .
Software Zen: delete this;
|
|
|
|
|
There is a word in Tamil for son-(or daughter-)in-law's parents
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
It says something wonderful about a culture when they have names for family relationships like that.
Software Zen: delete this;
|
|
|
|
|
Please tell me others did as well so I know I'm not an AI and hallucinating.
Iβve given up trying to be calm. However, I am open to feeling slightly less agitated.
Iβm begging you for the benefit of everyone, donβt be STUPID.
|
|
|
|