Pedro
❔ problem with DateTime format
guys, the "[DisplayFormat(DataFormatString = "{dd/MM/yyyy}")]" is not working for me:
when i add an event or update it, still shows like this
{
"title": "string",
"description": "string",
"date": "2023-08-28T22:43:42.452Z",
"attendees": [
"string"
]
}
can somebody help me?
42 replies
❔ EntityFramework help determining relationship
System.InvalidOperationException: Unable to determine the relationship represented by navigation 'Event.Planner' of type 'User'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
User.cs
Event.cs
20 replies