Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public PasswordChangedEvent()
- {
- }
- public PasswordChangedEvent(string hashedPassword, string salt, DateTime createdDate)
- :base(createdDate)
- {
- HashedPassword = hashedPassword;
- Salt = salt;
- }
- public string HashedPassword
- {
- private set { _hashedPassword = value; }
- get { return _hashedPassword; }
- }
- public string Salt
- {
- private set { _salt = value; }
- get { return _salt; }
- }
- }
- public class User : BaseReportDataObject
- {
- public string Name { get; set; }
- public string Email { get; set; }
- public string Gender { get; set; }
- public DateTime? BirthDate { get; set; }
- public string HashedPassword { get; set; }
- public string Salt { get; set; }
- public string RestoreHash { get; set; }
- public string OpenIdIdentifyer { get; set; }
- }
- MongoCollection.Update(Query<PasswordChangedEvent>.EQ(ev => ev.AggregateId, evnt.AggregateId),
- Update<PasswordChangedEvent>
- .Set(ev => ev.HashedPassword, evnt.HashedPassword)
- .Set(ev => ev.Salt, evnt.Salt));
- MongoCollection.Update(Query<ReadDto.User>.EQ(u => u.Id, evnt.AggregateId),
- Update<ReadDto.User>.Set(u => u.HashedPassword, evnt.HashedPassword));
Add Comment
Please, Sign In to add comment