Interface IFrameRepository
Repository for working with Frame instances.
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IFrameRepository
Methods
Delete(Int32)
Deletes the Frame with the provided identifier.
Declaration
void Delete(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The id of the frame that should be deleted. |
List()
Gets a list of all frames that has been defined.
Declaration
IEnumerable<Frame> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Frame> | A list of all Frame types. |
Load(Int32)
Load a frame by it's identifier
Declaration
Frame Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The identifier of the frame to load. |
Returns
Type | Description |
---|---|
Frame | A Frame instance or null if no match was found. |
Load(String)
Load a frame by it's name.
Declaration
Frame Load(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the frame to load. |
Returns
Type | Description |
---|---|
Frame | A Frame instance or null if no match was found. |
Save(Frame)
Updates or adds the provided Frame.
Declaration
int Save(Frame frame)
Parameters
Type | Name | Description |
---|---|---|
Frame | frame | The frame that should be saved. |
Returns
Type | Description |
---|---|
System.Int32 |