-
Notifications
You must be signed in to change notification settings - Fork 8
/
DatabaseScriptingOptions.cs
95 lines (81 loc) · 2.86 KB
/
DatabaseScriptingOptions.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
namespace DB_Schema_Export_Tool
{
/// <summary>
/// Database scripting options
/// </summary>
public class DatabaseScriptingOptions
{
// Ignore Spelling: Schemas
/// <summary>
/// When true, script system objects
/// </summary>
public bool IncludeSystemObjects { get; set; }
/// <summary>
/// When true, include timestamps in the script file header
/// </summary>
public bool IncludeTimestampInScriptFileHeader { get; set; }
/// <summary>
/// When true, export server settings, logins, and SQL Server Agent jobs
/// </summary>
public bool ExportServerSettingsLoginsAndJobs { get; set; }
/// <summary>
/// Save data as insert into statements
/// </summary>
public bool SaveDataAsInsertIntoStatements { get; set; }
/// <summary>
/// Auto select tables for data export
/// </summary>
public bool AutoSelectTablesForDataExport { get; set; }
/// <summary>
/// Export DB Schemas And Roles
/// </summary>
public bool ExportDBSchemasAndRoles { get; set; }
/// <summary>
/// Export Tables
/// </summary>
public bool ExportTables { get; set; }
/// <summary>
/// Export Views
/// </summary>
public bool ExportViews { get; set; }
/// <summary>
/// Export Stored Procedures
/// </summary>
public bool ExportStoredProcedures { get; set; }
/// <summary>
/// Export User Defined Functions
/// </summary>
public bool ExportUserDefinedFunctions { get; set; }
/// <summary>
/// Export User Defined Data Types
/// </summary>
public bool ExportUserDefinedDataTypes { get; set; }
/// <summary>
/// Export User Defined Types
/// </summary>
public bool ExportUserDefinedTypes { get; set; }
/// <summary>
/// Export Synonyms
/// </summary>
public bool ExportSynonyms { get; set; }
/// <summary>
/// Constructor
/// </summary>
public DatabaseScriptingOptions()
{
IncludeSystemObjects = false;
IncludeTimestampInScriptFileHeader = false;
ExportServerSettingsLoginsAndJobs = false;
SaveDataAsInsertIntoStatements = true;
AutoSelectTablesForDataExport = true;
ExportDBSchemasAndRoles = true;
ExportTables = true;
ExportViews = true;
ExportStoredProcedures = true;
ExportUserDefinedFunctions = true;
ExportUserDefinedDataTypes = true;
ExportUserDefinedTypes = true;
ExportSynonyms = true;
}
}
}