Interface IEntityRepository
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IEntityRepository : IRepository, IDisposable
Methods
Exists(Guid)
Returns true if the entity exists
Declaration
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Exists(Int32)
Returns true if the entity exists
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
Get(Int32)
Declaration
IUmbracoEntity Get(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Get(Int32, Guid)
Declaration
IUmbracoEntity Get(int id, Guid objectTypeId)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Guid |
objectTypeId |
|
Returns
GetAll(Guid, Guid[])
Declaration
IEnumerable<IUmbracoEntity> GetAll(Guid objectTypeId, params Guid[] keys)
Parameters
Type |
Name |
Description |
System.Guid |
objectTypeId |
|
System.Guid[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IUmbracoEntity> |
|
GetAll(Guid, Int32[])
Declaration
IEnumerable<IUmbracoEntity> GetAll(Guid objectTypeId, params int[] ids)
Parameters
Type |
Name |
Description |
System.Guid |
objectTypeId |
|
System.Int32[] |
ids |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IUmbracoEntity> |
|
GetAllPaths(Guid, Guid[])
Declaration
IEnumerable<EntityPath> GetAllPaths(Guid objectTypeId, params Guid[] keys)
Parameters
Type |
Name |
Description |
System.Guid |
objectTypeId |
|
System.Guid[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<EntityPath> |
|
GetAllPaths(Guid, Int32[])
Declaration
IEnumerable<EntityPath> GetAllPaths(Guid objectTypeId, params int[] ids)
Parameters
Type |
Name |
Description |
System.Guid |
objectTypeId |
|
System.Int32[] |
ids |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<EntityPath> |
|
GetByKey(Guid)
Declaration
IUmbracoEntity GetByKey(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
GetByKey(Guid, Guid)
Declaration
IUmbracoEntity GetByKey(Guid key, Guid objectTypeId)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Guid |
objectTypeId |
|
Returns
GetByQuery(IQuery<IUmbracoEntity>)
Declaration
IEnumerable<IUmbracoEntity> GetByQuery(IQuery<IUmbracoEntity> query)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IUmbracoEntity> |
|
GetByQuery(IQuery<IUmbracoEntity>, Guid)
Declaration
IEnumerable<IUmbracoEntity> GetByQuery(IQuery<IUmbracoEntity> query, Guid objectTypeId)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IUmbracoEntity> |
|
GetPagedResultsByQuery(IQuery<IUmbracoEntity>, Guid, Int64, Int32, out Int64, String, Direction, IQuery<IUmbracoEntity>)
Declaration
IEnumerable<IUmbracoEntity> GetPagedResultsByQuery(IQuery<IUmbracoEntity> query, Guid objectTypeId, long pageIndex, int pageSize, out long totalRecords, string orderBy, Direction orderDirection, IQuery<IUmbracoEntity> filter = null)
Parameters
Type |
Name |
Description |
IQuery<IUmbracoEntity> |
query |
Query to excute
|
System.Guid |
objectTypeId |
|
System.Int64 |
pageIndex |
Page number
|
System.Int32 |
pageSize |
Page size
|
System.Int64 |
totalRecords |
Total records query would return without paging
|
System.String |
orderBy |
Field to order by
|
Direction |
orderDirection |
Direction to order by
|
IQuery<IUmbracoEntity> |
filter |
|
Returns