AttachmentRepo.Get Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

Overloads

Get(IEntity) Gets the Files attached to the specified entity.
Get(int) Gets the specified Attachment from the repository.
Get(Int32[]) Get the specified Attachments from the repository.

Get(IEntity)

Gets the Files attached to the specified entity.

public static IEnumerable<Attachment> Get(IEntity entity)

Parameters

entity
IEntity

Returns

System.Collections.Generic.IEnumerable

Returns a list of File objects.

Get(int)

Gets the specified Attachment from the repository.

public static Attachment Get(int id)

Parameters

id
int

Id of the Attachment.

Returns

Attachment

Returns a Attachment object.

Get(Int32[])

Get the specified Attachments from the repository.

public static IEnumerable<Attachment> Get(int[] ids)

Parameters

ids
System.Int32[]

Ids of the Attachment.

Returns

System.Collections.Generic.IEnumerable

Returns a Attachment object.