Punica
Punica
CC#
Created by Vasshi on 6/28/2024 in #help
Question about SQL server and VPF visual studio
do somthing like that: https://paste.mod.gg/scbniurpbyrk/0 so in the Database is set a foreignkey for the column. now you can get a list of user´s have the ID´s from the Usergroup. You can get the Usergroup to put it in as a list for a ModelView when making a User. I Used EF Core to generating the tables and all
2 replies
CC#
Created by Wilhelm on 5/2/2024 in #help
Newtonsoft(JSON.net) Serializing JsonProperty attributes with custom converter
//example of json that is submitted
"Car":{
"Type":"Ferrari",
}

//where it gets mapped
public static class Car {
[JsonProperty("Type")]
public String type;
}
//example of json that is submitted
"Car":{
"Type":"Ferrari",
}

//where it gets mapped
public static class Car {
[JsonProperty("Type")]
public String type;
}
Hope thats help you understanding for what JsonProperty is used.
2 replies