public interface IWithType
        /// <summary>
        /// Тип элемента
        /// </summary>
        [Association(OnTargetRemove = OnRemoveAction.Cascade)]
        [Field(Nullable = false)]
        DocEntity ItemType { get; set; }

public abstract class FinToolBase : Entity, IWithType
/// <summary>
        /// Тип элемента
        /// </summary>
        [Field(NullableOnUpgrade = true)]
        public DocEntity ItemType { get; set; }

This setup fails with:

Error   3   An unexpected exception occured when executing user code: System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at Xtensive.Storage.PersistentAspect.ProvideAspects(Object targetElement) in d:\Home\\Xtensive.Storage\Xtensive.Storage\Aspects\PersistentAspect.cs:line 56
   at PostSharp.Sdk.Utilities.ExceptionHelper.ExecuteUserCode[T](Func`1 userCode, Type[] acceptableExceptions)  D:\Home\Docs\Visual Studio 2010\Projects\Eis\Eis.Models\POSTSHARP   Eis.Models

asked Feb 07 '11 at 05:46

xumix's gravatar image


edited Feb 08 '11 at 08:19

Alex%20Yakunin's gravatar image

Alex Yakunin

One Answer:

Fixed in revision 7208.

answered Feb 09 '11 at 06:45

Dmitri%20Maximov's gravatar image

Dmitri Maximov

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