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
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ReadOnlyRelation
Constructors
View Source
ReadOnlyRelation(Int32, Int32, Int32)
Declaration
public ReadOnlyRelation(int parentId, int childId, int relationTypeId)
Parameters
Type |
Name |
Description |
System.Int32 |
parentId |
|
System.Int32 |
childId |
|
System.Int32 |
relationTypeId |
|
View Source
ReadOnlyRelation(Int32, Int32, Int32, Int32, DateTime, String)
Declaration
public ReadOnlyRelation(int id, int parentId, int childId, int relationTypeId, DateTime createDate, string comment)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
parentId |
|
System.Int32 |
childId |
|
System.Int32 |
relationTypeId |
|
DateTime |
createDate |
|
System.String |
comment |
|
Properties
View Source
ChildId
Declaration
public int ChildId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Declaration
public string Comment { get; }
Property Value
Type |
Description |
System.String |
|
View Source
CreateDate
Declaration
public DateTime CreateDate { get; }
Property Value
Type |
Description |
DateTime |
|
View Source
HasIdentity
Declaration
public bool HasIdentity { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Id
Declaration
Property Value
Type |
Description |
System.Int32 |
|
View Source
ParentId
Declaration
public int ParentId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
RelationTypeId
Declaration
public int RelationTypeId { get; }
Property Value
Type |
Description |
System.Int32 |
|