private static void SetDbCommandParameter(Database db, DbCommand command, string calculatepassword, string userID, string passwordType, string algorithmType) { db.AddInParameter(command, "Password", DbType.String, calculatepassword); db.AddInParameter(command, "UserID", DbType.String, userID); db.AddInParameter(command, "PasswordType", DbType.String, passwordType); db.AddInParameter(command, "AlgorithmType", DbType.String, string.IsNullOrEmpty(algorithmType) == true ? DefaultAlgorithmType : algorithmType); }
private void SetCommandParames(Database db, DbCommand command, InvalidAssigneesNotification data) { db.AddInParameter(command, "NOTIFICATION_ID", DbType.String, string.IsNullOrEmpty(data.NotificationID) ? UuidHelper.NewUuidString() : data.NotificationID); db.AddInParameter(command, "Description", DbType.String, data.Description); db.AddInParameter(command, "CreateTime", DbType.String, data.CreateTime); }