Exemple #1
0
        public virtual void Edit(object threadSafeProxy)
        {
            if (!source.IsLoadedProxy(threadSafeProxy))
            {
                return;
            }
            TPrimaryKey primaryKey = GetProxyPrimaryKey(threadSafeProxy);
            TEntity     entity     = helperRepository.Find(primaryKey);

            if (entity == null)
            {
                DestroyDocument(DocumentManagerService.FindEntityDocument <TEntity, TPrimaryKey>(primaryKey));
                return;
            }
            DocumentManagerService.ShowExistingEntityDocument <TEntity, TPrimaryKey>(this, primaryKey);
        }