protected override object ReadRow(IRowReader reader) { UserPasswordHistory userPasswordHistory = UserPasswordHistory.New(); // Table Fields userPasswordHistory.UserPasswordHistoryId = reader.GetInt32("UserPasswordHistoryId"); userPasswordHistory.UserId = reader.GetInt32("UserId"); userPasswordHistory.Password = reader.GetString("Password"); userPasswordHistory.Date = reader.GetDateTime("Date"); userPasswordHistory.IsDirty = false; userPasswordHistory.ChangedProperties.Clear(); return(userPasswordHistory); }