generated from Avanade/avanade-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgram.cs
23 lines (22 loc) · 1.1 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using DbEx.SqlServer.Console;
using System.Threading.Tasks;
namespace DbEx.Test.Console
{
public class Program
{
internal static Task<int> Main(string[] args) => SqlServerMigrationConsole
.Create<Program>("Data Source=.;Initial Catalog=DbEx.Console;Integrated Security=True;TrustServerCertificate=true")
.Configure(c =>
{
c.Args.AddAssembly<DbEx.Test.OutboxConsole.Program>("Data", "Data2");
c.Args.AddSchemaOrder("Test", "Outbox");
c.Args.IncludeExtendedSchemaScripts();
c.Args.DataParserArgs.Parameter("DefaultName", "Bazza")
.RefDataColumnDefault("SortOrder", i => i)
.ColumnDefault("*", "*", "TenantId", _ => "test-tenant")
.TableNameMappings.Add("XTest", "XContactType", "Test", "ContactType", new() { { "XNumber", "Number" } })
.Add("Test", "Addresses", "Test", "ContactAddress");
})
.RunAsync(args);
}
}