Beispiel #1
0
        public static Task <TEntity> GetByEntityIdSlimAsync <TEntity>(this IBucket bucket, string entityId,
                                                                      bool throwIfFailed = false) where TEntity : BaseEntity <TEntity>, IBaseEntity
        {
            var key = BaseEntity <TEntity> .GetDocumentId(entityId);

            return(bucket.GetSlimAsync <TEntity>(key, throwIfFailed));
        }