You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an attribute that allows the user to specify the Key property to use as ID when post a new object in case someone wants to use his datatype key structure as Guid, AutoEnum etc...
Example
Model Class
publicclassTodoItem{[FirebaseKey]publicGuidID{get;set;}publicstringTitle{get;set;}}
await firebaseClient.Child("Todo").PostAsync(new TodoItem
{
ID = Guid.NewGuid(),
Title = "This isa Text"});
Result in Firebase RealTiem Database
"Todo":{
"621e7bf1-1d39-493f-a6b1-537afb5efa41":{
"Title":"This is a Text"
}
}
The text was updated successfully, but these errors were encountered:
Create an attribute that allows the user to specify the Key property to use as ID when post a new object in case someone wants to use his datatype key structure as Guid, AutoEnum etc...
Example
Model Class
Result in Firebase RealTiem Database
The text was updated successfully, but these errors were encountered: