Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public static EObjectRelationType EAssetRelationTypeFromValue(System.Int16 value)
 {
     foreach (EObjectRelationType item in EObjectRelationType.GetValues(typeof(EObjectRelationType)))
     {
         if (item.GetHashCode() == value)
         {
             return(item);
         }
     }
     return(EObjectRelationType.Undefined);
 }