View Source
Interface IEntityRepository
Assembly: Umbraco.Core.dll
Syntax
public interface IEntityRepository : IRepository
Methods
View Source
Exists(Guid)
Declaration
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Exists(Int32)
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Get(Guid)
Declaration
IEntitySlim Get(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
View Source
Get(Guid, Guid)
Declaration
IEntitySlim Get(Guid key, Guid objectTypeId)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Guid |
objectTypeId |
|
Returns
View Source
Get(Int32)
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
Get(Int32, Guid)
Declaration
IEntitySlim Get(int id, Guid objectTypeId)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Guid |
objectTypeId |
|
Returns
View Source
GetAll(Guid, Guid[])
Declaration
IEnumerable<IEntitySlim> GetAll(Guid objectType, params Guid[] keys)
Parameters
Type |
Name |
Description |
System.Guid |
objectType |
|
System.Guid[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntitySlim> |
|
View Source
GetAll(Guid, Int32[])
Declaration
IEnumerable<IEntitySlim> GetAll(Guid objectType, params int[] ids)
Parameters
Type |
Name |
Description |
System.Guid |
objectType |
|
System.Int32[] |
ids |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntitySlim> |
|
View Source
GetAllPaths(Guid, Guid[])
Declaration
IEnumerable<TreeEntityPath> GetAllPaths(Guid objectType, params Guid[] keys)
Parameters
Type |
Name |
Description |
System.Guid |
objectType |
|
System.Guid[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TreeEntityPath> |
|
View Source
GetAllPaths(Guid, Int32[])
Declaration
IEnumerable<TreeEntityPath> GetAllPaths(Guid objectType, params int[] ids)
Parameters
Type |
Name |
Description |
System.Guid |
objectType |
|
System.Int32[] |
ids |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TreeEntityPath> |
|
View Source
GetByQuery(IQuery<IUmbracoEntity>)
Gets entities for a query
Declaration
IEnumerable<IEntitySlim> GetByQuery(IQuery<IUmbracoEntity> query)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntitySlim> |
|
View Source
GetByQuery(IQuery<IUmbracoEntity>, Guid)
Gets entities for a query and a specific object type allowing the query to be slightly more optimized
Declaration
IEnumerable<IEntitySlim> GetByQuery(IQuery<IUmbracoEntity> query, Guid objectType)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntitySlim> |
|
View Source
GetObjectType(Guid)
Declaration
UmbracoObjectTypes GetObjectType(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
View Source
GetObjectType(Int32)
Declaration
UmbracoObjectTypes GetObjectType(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid, Int64, Int32, out Int64, IQuery<IUmbracoEntity>, Ordering)
Gets paged entities for a query and a specific object type
Declaration
IEnumerable<IEntitySlim> GetPagedResultsByQuery(IQuery<IUmbracoEntity> query, Guid objectType, long pageIndex, int pageSize, out long totalRecords, IQuery<IUmbracoEntity> filter, Ordering ordering)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntitySlim> |
|
View Source
GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid[], Int64, Int32, out Int64, IQuery<IUmbracoEntity>, Ordering, Action<Sql<ISqlContext>>)
Gets paged entities for a query and a subset of object types
Declaration
IEnumerable<IEntitySlim> GetPagedResultsByQuery(IQuery<IUmbracoEntity> query, Guid[] objectTypes, long pageIndex, int pageSize, out long totalRecords, IQuery<IUmbracoEntity> filter, Ordering ordering, Action<Sql<ISqlContext>> sqlCustomization = null)
Parameters
Type |
Name |
Description |
IQuery<IUmbracoEntity> |
query |
|
System.Guid[] |
objectTypes |
|
System.Int64 |
pageIndex |
|
System.Int32 |
pageSize |
|
System.Int64 |
totalRecords |
|
IQuery<IUmbracoEntity> |
filter |
|
Ordering |
ordering |
|
System.Action<Sql<ISqlContext>> |
sqlCustomization |
A callback providing the ability to customize the generated SQL used to retrieve entities
|
Returns