generated from Avanade/avanade-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathProgram.cs
18 lines (16 loc) · 946 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using NTangle.CodeGen;
using System.Threading.Tasks;
namespace AppName.CodeGen;
/// <summary>
/// <see href="https://github.com/Avanade/NTangle">NTangle</see>-based code-generation console program.
/// </summary>
public class Program
{
/// <summary>
/// Runs the code generation using the passed <paramref name="args"/> string.
/// </summary>
/// <param name="args">>The command-line arguments.</param>
/// <returns><b>Zero</b> indicates success; otherwise, unsuccessful.</returns>
/// <remarks>The specified connection string is for default development purposes only; this can be overriden using a command line argument ('<c>-cs|--connection-string</c>' or '<c>-cv|--connection-varname</c>').</remarks>
public static async Task Main(string[] args) => await new CodeGenConsole("Data Source=.;Initial Catalog=DomainName;Integrated Security=True;TrustServerCertificate=true").RunAsync(args).ConfigureAwait(false);
}