public XObjectRelation(Guid fromAssetId, Guid toAssetId, EObjectRelationType relationType, Guid userId) { this.FromAssetId = fromAssetId; this.ToAssetId = toAssetId; this.AssetRelationType = relationType; this.CreatedBy = userId; this.IsNew = true; this.IsDirty = true; }
public static EObjectRelationType EAssetRelationTypeFromValue(System.Int16 value) { foreach (EObjectRelationType item in EObjectRelationType.GetValues(typeof(EObjectRelationType))) { if (item.GetHashCode() == value) { return(item); } } return(EObjectRelationType.Undefined); }