| File: MySqlCreateDatabaseScriptAnnotation.cs | Web Access |
| Project: src\src\Aspire.Hosting.MySql\Aspire.Hosting.MySql.csproj (Aspire.Hosting.MySql) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Aspire.Hosting.ApplicationModel; namespace Aspire.Hosting; /// <summary> /// Represents an annotation for defining a script to create a database in MySql. /// </summary> internal sealed class MySqlCreateDatabaseScriptAnnotation : IResourceAnnotation { /// <summary> /// Initializes a new instance of the <see cref="MySqlCreateDatabaseScriptAnnotation"/> class. /// </summary> /// <param name="script">The script used to create the database.</param> public MySqlCreateDatabaseScriptAnnotation(string script) { ArgumentNullException.ThrowIfNull(script); Script = script; } /// <summary> /// Gets the script used to create the database. /// </summary> public string Script { get; } }