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
public class TodoItem
{
[FirebaseKey]
public Guid ID {get;set;}
public string Title { get; set; }
}
await firebaseClient.Child("Todo").PostAsync(new TodoItem
{
ID = Guid.NewGuid(),
Title = "This is a Text"
});
Result in Firebase RealTiem Database
"Todo":{
"621e7bf1-1d39-493f-a6b1-537afb5efa41":{
"Title":"This is a Text"
}
}
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