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;}}awaitfirebaseClient.Child("Todo").PostAsync(newTodoItem{ID=Guid.NewGuid(),Title="This is a 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:
Hey man, did you find a way to specify the key using this library?
Or you had to adjust it with the attribute you mentioned?
@bnbgames both, hahahhahah I'm pending to send a pull request to add this feature zoom, but there is also way to do it with the library but is a little bit scary the way can do this....
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: