'DocEntity+MlInterfaces.Owner' field, which is declared as paired to 'DocEntity.Interfaces' field, should be of type 'DocEntity' but actually it is 'DocEntity'. This is how everything is defined:

[HierarchyRoot(InheritanceSchema = InheritanceSchema.ConcreteTable)]
    public abstract class Multilink<TOwner, TLinked> : EntityBase, IMultilink, IOwned
        where TOwner : EntityBase
        where TLinked : EntityBase
        protected Multilink(Guid id, TOwner owner) : base(id)
            Owner = owner;

        /// <summary>
        /// Зависимый
        /// Элемент на который ссылается мультилинк
        /// </summary>
        [Field(Nullable = false)]
        [Association(OnOwnerRemove = OnRemoveAction.Clear, OnTargetRemove = OnRemoveAction.Deny)]
        public TLinked Linked { get; set; }

        /// <summary>
        /// Владелец
        /// Элемент содержащий мультилинк
        /// </summary>
        [Field(Nullable = false)]
        [Association(OnOwnerRemove = OnRemoveAction.Clear, OnTargetRemove = OnRemoveAction.Cascade)]
        public TOwner Owner { get; set; }

public partial class DocEntity
        /// <summary>
        /// Мультилинк сущности и интерфейсов
        /// </summary>
        /// <revision>$Rev$</revision>        
        public partial class MlInterfaces : Multilink<DocEntity, EnEntityInterface>
            public MlInterfaces(Guid id, DocEntity owner)
                : base(id, owner)

    [Index("SysName", Unique = true, Name = "DocEntity.IX_SysName")]
    public partial class DocEntity : Werp.Model.Models.Base.DocumentBase, IRevisioned, IHierarchical<DocEntity>
        [Association(PairTo = "Owner", OnTargetRemove = OnRemoveAction.Clear, OnOwnerRemove = OnRemoveAction.Cascade)]
        public EntitySet<DocEntity.MlInterfaces> Interfaces { get; set; }

asked Oct 27 '10 at 04:14

xumix's gravatar image


edited Oct 29 '10 at 02:24

Alex%20Yakunin's gravatar image

Alex Yakunin

2 Answers:


The issue has a high priority mark and will be fixed shortly.

answered Oct 27 '10 at 04:27

Dmitri%20Maximov's gravatar image

Dmitri Maximov

Thanks. It would be great to have a nightly build with this issue fixed.

(Oct 27 '10 at 04:31) xumix xumix's gravatar image

Be sure, will do.

(Oct 27 '10 at 04:42) Dmitri Maximov Dmitri%20Maximov's gravatar image

The issue is fixed. Nightly build will be available soon.

Unfortunately, we couldn't use the part of your model you had posted in the testing process because we couldn't get it compiled (it contains several interfaces which might affect on association discovery & building process). So in case the issue resurrects, please send the entire domain model to support [at] x-tensive.com.

answered Oct 29 '10 at 04:58

Alexis%20Kochetov's gravatar image

Alexis Kochetov

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA