:
:
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
Alright, thanks!
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
and thats the code
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
//Author

[ForeignKey("UserId")]
public string AuthorId { get; set; }

public IdentityUser Author { get; set; }


//LastEditedBy

[ForeignKey("UserId")]
public string LastEditedById { get; set; }

public IdentityUser LastEditedBy { get; set; }
//Author

[ForeignKey("UserId")]
public string AuthorId { get; set; }

public IdentityUser Author { get; set; }


//LastEditedBy

[ForeignKey("UserId")]
public string LastEditedById { get; set; }

public IdentityUser LastEditedBy { get; set; }
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
even though I did not specify for them to
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
I have another question, in my textfilemodel I have two foreign keys to the asp.net user table, and for some reason they allow nulls
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
Alright
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
I tried this and it seems to have worked
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
Yeah
17 replies
CC#
Created by : on 11/24/2022 in #help
✅ Foreign key not working
So it has to be TextFileModel?
17 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
bet, thanks
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
since I cant use User again
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
will this work if I need a second fk to the same table
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
public string LastEditedBy { get; set; }

public IdentityUser User2 { get; set; }
public string LastEditedBy { get; set; }

public IdentityUser User2 { get; set; }
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
thanks
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
Oh I see
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
should be this right?
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
[ForeignKey("UserId")]
public string AuthorId { get; set; }

public IdentityUser User { get; set; }
[ForeignKey("UserId")]
public string AuthorId { get; set; }

public IdentityUser User { get; set; }
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
thanks
26 replies
CC#
Created by : on 11/23/2022 in #help
Foreign key to Asp.net user
alright I think I got it then
26 replies