'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)]
    [Id("F3F91774-1F7F-41EF-0000-000000000000")]
    [Serializable]
    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)]
        [Id("00000000-0000-0000-8326-53CB24F7B5D8")]
        public TLinked Linked { get; set; }

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

public partial class DocEntity
    {
        /// <summary>
        /// Мультилинк сущности и интерфейсов
        /// </summary>
        /// <revision>$Rev$</revision>        
        [Id("629409A9-C9E4-47D2-0000-000000000000")]
        public partial class MlInterfaces : Multilink<DocEntity, EnEntityInterface>
        {
            public MlInterfaces(Guid id, DocEntity owner)
                : base(id, owner)
            {
            }
        }
    }

[Id("C859E9F9-8196-42CE-0000-000000000000")]
    [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)]
        [Field]
        [Id("00000000-0000-0000-8235-49FE5D2F482A")]
        public EntitySet<DocEntity.MlInterfaces> Interfaces { get; set; }
}

asked Oct 27 '10 at 04:14

xumix's gravatar image

xumix
425757682

edited Oct 29 '10 at 02:24

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412


2 Answers:

Hello,

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
22111211

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
1414

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