예제 #1
0
        /// <summary/>
        public async Task DeleteEntity(Guid entityId, bool autoSave = true)
        {
            var entity = _dbContext.Find(typeof(TEntity), entityId);

            _dbContext.Remove(entity);

            if (autoSave)
            {
                await Save();
            }
        }