Untitled

 avatar
unknown
plain_text
a year ago
498 B
12
Indexable
//This code will be placed on your model file
//Replace all necessary fields aligned on your existing database.
//This will be placed on your Student.cs model


public async Task<List<Schools>> GetSchools()
{
    return (await client
        .Child("Schools")
        .OnceAsync<Schools>()).Select(item => new Schools
        {
            SchoolID = item.Object.SchoolID,
            SchoolName = item.Object.SchoolName,
            SchoolAddress = item.Object.SchoolAddress
        }).ToList();
}
Editor is loading...
Leave a Comment