Пример #1
0
        public async Task AddHashToDBAsync(List <IStringifyable> listOfItems, string name)
        {
            SynchroEntity synchro = new SynchroEntity
            {
                ClassName = name,
                HashCode  = MD5Helper.GenerateMD5Sum(listOfItems)
            };

            await _context.SynchroEntity.AddAsync(synchro);

            await _context.SaveChangesAsync();
        }