Askeladd
Askeladd
CC#
Created by Kasumi on 3/4/2025 in #help
Column Name isn't changing / set as defined in the [Column(string name)] Attribute
just noticed
6 replies
CC#
Created by Kasumi on 3/4/2025 in #help
Column Name isn't changing / set as defined in the [Column(string name)] Attribute
You need to explicitly define a foreign key property in addition to your navigation property
[Column("UserId")]
public string UserId { get; set; } = null!; // this one

[ForeignKey(nameof(UserId))]
public virtual ApplicationUser? User { get; set; }
[Column("UserId")]
public string UserId { get; set; } = null!; // this one

[ForeignKey(nameof(UserId))]
public virtual ApplicationUser? User { get; set; }
6 replies
CC#
Created by Kasumi on 3/4/2025 in #help
Column Name isn't changing / set as defined in the [Column(string name)] Attribute
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<IdeaViewModel>()
.HasOne(i => i.User)
.WithMany()
.HasForeignKey("UserId")
.HasConstraintName("FK_IdeaViewModel_User");

base.OnModelCreating(modelBuilder);
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<IdeaViewModel>()
.HasOne(i => i.User)
.WithMany()
.HasForeignKey("UserId")
.HasConstraintName("FK_IdeaViewModel_User");

base.OnModelCreating(modelBuilder);
}
6 replies
CC#
Created by Kasumi on 3/4/2025 in #help
Column Name isn't changing / set as defined in the [Column(string name)] Attribute
try it with fluentAPI
6 replies
CC#
Created by Kratos on 3/3/2025 in #help
Building a Chat App with Firebase in .NET MAUI – Any Examples or Guides?
np man good luck
9 replies
CC#
Created by Kratos on 3/3/2025 in #help
Building a Chat App with Firebase in .NET MAUI – Any Examples or Guides?
and you should edit it in your code to only show chats with authenticated user id
9 replies
CC#
Created by Kratos on 3/3/2025 in #help
Building a Chat App with Firebase in .NET MAUI – Any Examples or Guides?
but you can try this it should help with accessing chats
9 replies
CC#
Created by Kratos on 3/3/2025 in #help
Building a Chat App with Firebase in .NET MAUI – Any Examples or Guides?
i made it before with flutterflow so i didn't write any code actually
9 replies
CC#
Created by Kratos on 3/3/2025 in #help
Building a Chat App with Firebase in .NET MAUI – Any Examples or Guides?
{
"rules": {
"chats": {
"$chatId": {
".read": "request.auth != null && resource.data.users[request.auth.uid] == true",
".write": "request.auth != null && resource.data.users[request.auth.uid] == true"
}
}
}
}
{
"rules": {
"chats": {
"$chatId": {
".read": "request.auth != null && resource.data.users[request.auth.uid] == true",
".write": "request.auth != null && resource.data.users[request.auth.uid] == true"
}
}
}
}
9 replies
CC#
Created by Kratos on 3/3/2025 in #help
Building a Chat App with Firebase in .NET MAUI – Any Examples or Guides?
message table : user1 user2 text time chat table : user1 user2 lastMsg chat <1---*> message and you view messages that have same user1 user1 as chat
9 replies
CC#
Created by Askeladd on 2/25/2025 in #help
Web Dev Track
thats great actually thanks a lot
3 replies
CC#
Created by Askeladd on 2/20/2025 in #help
EF Concurrency
thanks
6 replies