예제 #1
0
        public override bool Remove(object target)
        {
            var entity = EntityContainer.AsEntity(target);

            if (entity == null)
            {
                throw new ArgumentNullException("target");
            }

            var entityType = entity.Type.FullName;
            var id         = entity.Id;

            _memoAccessor.RemoveEntity(entityType, id);
            _memoAccessor.RemoveSerializableProperty(entityType, id);

            _exDataAccessor.RemoveExtendedTextData(entityType, id);
            _exDataAccessor.RemoveExtendedBlobData(entityType, id);

            return(true);
        }