Rebel.Cms.Web.RebelHelper.GetEntityById C# (CSharp) Method

GetEntityById() public method

Gets the typed entity by the given id.
public GetEntityById ( HiveId id ) : TypedEntity
id HiveId The id.
return TypedEntity
        public TypedEntity GetEntityById(HiveId id)
        {
            var hive = _requestContext.Application.Hive.GetReader<IContentStore>(id.ToUri());
            using (var uow = hive.CreateReadonly())
            {
                return uow.Repositories.Get(id);
            }
        }

Same methods

RebelHelper::GetEntityById ( string id ) : TypedEntity