/** * Store a encrypted pseudonym in the database. * @param user The User ID to store the encrypted pseudonym for. * @param sp the SP ID to store the encrypted pseudonym for. * @param ep The encrypted pseudonym to store. */ public void AddEncrypted(string user, string sp, Pseudonym ep) { EncryptedPseudonym pseudonym = new EncryptedPseudonym(); pseudonym.user = user; pseudonym.sp = sp; pseudonym.pseudonym = ep.Encode(); pseudonym.id = System.Guid.NewGuid(); db.EncryptedPseudonyms.InsertOnSubmit(pseudonym); db.SubmitChanges(); }
partial void DeleteEncryptedPseudonym(EncryptedPseudonym instance);
partial void UpdateEncryptedPseudonym(EncryptedPseudonym instance);
partial void InsertEncryptedPseudonym(EncryptedPseudonym instance);