Repository navigation
Expand file tree
/
Copy pathChildObjectName.cs
More file actions
82 lines (75 loc) · 2.36 KB
/
Copy pathChildObjectName.cs
File metadata and controls
82 lines (75 loc) · 2.36 KB
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
//------------------------------------------------------------------------------
// <copyright file="ChildObjectName.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
namespace Microsoft.SqlServer.TransactSql.ScriptDom
{
public partial class ChildObjectName
{
// Here we have shifted (by 1) modifiers compared with SchemaObjecName
private const int ServerModifierNumber = 5;
private const int DatabaseModifierNumber = 4;
private const int SchemaModifierNumber = 3;
private const int BaseModifierNumber = 2;
private const int ChildModifierNumber = 1;
#region Redefined properties from base class
/// <summary>
/// Gets the base identifier.
/// </summary>
/// <value>The base identifier.</value>
public override Identifier BaseIdentifier
{
get
{
return ChooseIdentifier(BaseModifierNumber);
}
}
/// <summary>
/// Gets the database identifier.
/// </summary>
/// <value>The database identifier.</value>
public override Identifier DatabaseIdentifier
{
get
{
return ChooseIdentifier(DatabaseModifierNumber);
}
}
/// <summary>
/// Gets the schema identifier.
/// </summary>
/// <value>The schema identifier.</value>
public override Identifier SchemaIdentifier
{
get
{
return ChooseIdentifier(SchemaModifierNumber);
}
}
/// <summary>
/// Gets the server identifier.
/// </summary>
/// <value>The server identifier.</value>
public override Identifier ServerIdentifier
{
get
{
return ChooseIdentifier(ServerModifierNumber);
}
}
#endregion
/// <summary>
/// Gets the child identifier.
/// </summary>
/// <value>The child identifier.</value>
virtual public Identifier ChildIdentifier
{
get
{
return ChooseIdentifier(ChildModifierNumber);
}
}
}
}