Skip to content

Commit 01753d0

Browse files
committed
Add Parent property to Login class for server association
1 parent 948d2be commit 01753d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Unit/Stubs/SMO.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ public class Login
362362
public bool PasswordExpirationEnabled = false;
363363
public bool IsDisabled = false;
364364
public string DefaultDatabase;
365+
public Server Parent;
365366

366367
public Login( string name )
367368
{
@@ -371,11 +372,16 @@ public Login( string name )
371372
public Login( Server server, string name )
372373
{
373374
this.Name = name;
375+
this.Parent = server;
374376
}
375377

376378
public Login( Object server, string name )
377379
{
378380
this.Name = name;
381+
if (server is Server)
382+
{
383+
this.Parent = (Server)server;
384+
}
379385
}
380386

381387
public void Alter()

0 commit comments

Comments
 (0)