This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Program.cs
59 lines (57 loc) · 1.92 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using EdmGen06.Properties;
using System;
using System.Diagnostics;
namespace EdmGen06 {
class Program {
static void Main(string[] args) {
if (args.Length >= 5 && args[0] == "/ModelGen") {
new EdmGenModelGen().ModelGen(
args[1],
args[2],
args[3],
args[4],
(args.Length > 5) ? new Version(args[5]) : new Version("3.0")
);
return;
}
if (args.Length >= 6 && args[0] == "/EFModelGen") {
new EdmGenModelGen().ModelGen2(
args[1],
args[2],
args[3],
args[4],
args[5],
(args.Length > 6) ? new Version(args[6]) : new Version("3.0")
);
return;
}
else if (args.Length >= 5 && args[0] == "/DataSet") {
new EdmGenDataSet().DataSet(
args[1],
args[2],
args[3],
args[4]
);
return;
}
else if (args.Length >= 3 && args[0] == "/DataSet.cs") {
new EdmGenDataSet().DataSet_cs(
args[1],
args[2]
);
return;
}
else if (args.Length >= 4 && args[0] == "/EFCodeFirstGen") {
new EdmGenClassGen().CodeFirstGen(
args[1],
args[2],
args[3],
"Host=xxx;Port=xxx;Username=xxx;Password=xxx;Database=xxx;"
);
return;
}
Console.Error.WriteLine(Resources.Usage);
Environment.ExitCode = 1;
}
}
}