コード例 #1
0
        public override void AcceptModelProperties(AttachmentModelBase other)
        {
            base.AcceptModelProperties(other);

            var otherAlbum = (TAlbum)other;

            AlbumCollectionDescriptors.Clear();
            ChildAttachmentDescriptors.Clear();
            AlbumCollectionDescriptors.AddRange(otherAlbum.AlbumCollectionDescriptors);
            ChildAttachmentDescriptors.AddRange(otherAlbum.ChildAttachmentDescriptors);
        }
コード例 #2
0
 public override void PrepareNavigationProps()
 {
     ChildAttachmentDescriptors.ForEach(desc => desc.NavigationParent = null);
     AlbumCollectionDescriptors.ForEach(desc => desc.NavigationParent = null);
 }