{sus}
{sus}
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
let me try a different approach
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
Quirky
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
lol
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
The exception 'The seed entity for entity type 'Owner' cannot be added because a non-zero value is required for property 'Id'. Consider providing a negative value to avoid collisions with non-seed data.
The exception 'The seed entity for entity type 'Owner' cannot be added because a non-zero value is required for property 'Id'. Consider providing a negative value to avoid collisions with non-seed data.
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
HOLD ON
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
THAT MAKES PERFECT SENSE
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
OHH
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
instead of null, for sanity purposes
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
That's also an option, but I'd rather have a place holder value for "global" items
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
Yes.
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
So yeah
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
Migrations are generated from the model code on a code first approach
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
If and when someone decides to regenerate the migrations from scratch, this problem won't exist (if I solve it)
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
That's actually my last result but I want to solve this on code level first if possible
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
No description
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
All the other seed data that has an ownerId of > 0 is fine
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
If it helps, the seed data with 0 OwnerId is my only problem
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
I also checked the migrations generated
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
100% positive
54 replies
CC#
Created by {sus} on 10/17/2024 in #help
Setting a Default Value for Migrations
Yes.
54 replies