Skip to content

Commit f898566

Browse files
committed
Update SqlServerDsc guidelines to clarify resource inheritance and constructor definition
1 parent b60438e commit f898566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/instructions/SqlServerDsc-guidelines.instructions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ applyTo: "**"
1111

1212
## Resources
1313
- Database Engine resources: inherit `SqlResourceBase`
14-
- Inheriting `SqlResourceBase`; add `InstanceName`, `ServerName`, and `Credential` to `$this.ExcludeDscProperties`
14+
- Add `InstanceName`, `ServerName`, and `Credential` to `$this.ExcludeDscProperties`
1515
- `SqlResourceBase` provides: `InstanceName`, `ServerName`, `Credential`, `Reasons`, `GetServerObject()`
16+
- Constructor: `MyResourceName() : base () { }` (no $PSScriptRoot parameter)
1617

1718
## SQL Server Interaction
1819
- Always prefer SMO over T-SQL

0 commit comments

Comments
 (0)