src/fursvp.data/Firestore/FirestoreRepository.cs
/// <summary>
/// Gets a single instance of T matching the given Id from Firestore.
/// </summary>
/// <param name="guid">The globally unique identifier for the entity.</param>
/// <returns>An asynchronous <see cref="Task{T}"/> containing the entity if found, otherwise null.</returns>
Gets a single instance of T matching the given Id from Firestore.
Gets a single instance of T matching the given Id from Firestore .
public async Task<T> GetById(Guid guid)
        {
            var snapshot = await Document(guid).GetSnapshotAsync().ConfigureAwait(false);
            if (snapshot.Exists)
            {
                return Mapper.FromDictionary(snapshot.ToDictionary());
            }
            return default;
        }
public async Task < T > GetById ( Guid guid ) { var snapshot = await Document ( guid ) . GetSnapshotAsync ( ) . ConfigureAwait ( false ) ; if ( snapshot . Exists ) { return Mapper . FromDictionary ( snapshot . ToDictionary ( ) ) ; } return default ; }
Gets a single instance of T matching the given Id from Firestore.
Gets a single instance of T matching the given Id from Firestore .
An asynchronous  containing the entity if found, otherwise null.
An asynchronous containing the entity if found otherwise null .
guid
Guid
The globally unique identifier for the entity.
The globally unique identifier for the entity .