コード例 #1
0
        public async Task UploadFilePathToDatabase(string fileName, string path, string fullPath)
        {
            var encryptedFile = new EncryptedFile
            {
                FileName = fileName,
                Path     = path,
                FullPath = fullPath
            };
            await _context.AddAsync(encryptedFile);

            await _context.SaveChangesAsync();
        }