public void Insert(HashBinMinHash hashBin)
 {
     hashBin.Id = PrepareStoredProcedure(SpInsertMinhashHashbin)
                     .WithParametersFromModel(hashBin)
                     .Execute()
                     .AsScalar<int>();
 }
 public void Insert(HashBinMinHash hashBin)
 {
     PrepareStoredProcedure(SpInsertMinhashHashbin)
                     .WithParametersFromModel(hashBin)
                     .Execute()
                     .AsNonQuery();
 }
        private void HashSubFingerprintsUsingMinHash(IEnumerable<SubFingerprint> listOfSubFingerprintsToHash)
        {
            List<HashBinMinHash> listToInsert = new List<HashBinMinHash>();
            foreach (SubFingerprint subFingerprint in listOfSubFingerprintsToHash)
            {
                long[] buckets = lshService.Hash(subFingerprint.Signature, hashTables, hashKeys);
                int tableCount = 1;
                foreach (long bucket in buckets)
                {
                    HashBinMinHash hash = new HashBinMinHash(bucket, tableCount++, subFingerprint.Id);
                    listToInsert.Add(hash);
                }
            }

            modelService.InsertHashBin(listToInsert);
        }
 public void InsertHashBin(HashBinMinHash hashBin)
 {
     hashBinMinHashDao.Insert(hashBin);
 }