View Source
Class ReadOnlyRelation
A read only relation. Can be used to bulk save witch performs better than the normal save operation,
but do not populate Ids back to the model
Assembly: Umbraco.Core.dll
Syntax
public class ReadOnlyRelation
Constructors
View Source
ReadOnlyRelation(int, int, int)
Declaration
public ReadOnlyRelation(int parentId, int childId, int relationTypeId)
Parameters
| Type |
Name |
Description |
| int |
parentId |
|
| int |
childId |
|
| int |
relationTypeId |
|
View Source
ReadOnlyRelation(int, int, int, int, DateTime, string)
Declaration
public ReadOnlyRelation(int id, int parentId, int childId, int relationTypeId, DateTime createDate, string comment)
Parameters
| Type |
Name |
Description |
| int |
id |
|
| int |
parentId |
|
| int |
childId |
|
| int |
relationTypeId |
|
| DateTime |
createDate |
|
| string |
comment |
|
Properties
View Source
ChildId
Declaration
public int ChildId { get; }
Property Value
View Source
Declaration
public string Comment { get; }
Property Value
View Source
CreateDate
Declaration
public DateTime CreateDate { get; }
Property Value
| Type |
Description |
| DateTime |
|
View Source
HasIdentity
Declaration
public bool HasIdentity { get; }
Property Value
View Source
Id
Declaration
Property Value
View Source
ParentId
Declaration
public int ParentId { get; }
Property Value
View Source
RelationTypeId
Declaration
public int RelationTypeId { get; }
Property Value