public void DisplayUsers() { FbSecurity securitySvc = new FbSecurity(); securitySvc.ConnectionString = this.BuildServicesConnectionString(false); FbUserData[] users = securitySvc.DisplayUsers(); Console.WriteLine("User List"); for (int i = 0; i < users.Length; i++) { Console.WriteLine("User {0} name {1}", i, users[i].UserName); } }
public void DeleteUser() { FbSecurity securitySvc = new FbSecurity(); securitySvc.ConnectionString = this.BuildServicesConnectionString(false); FbUserData user = new FbUserData(); user.UserName = "******"; securitySvc.DeleteUser(user); }
public void DisplayUser() { FbSecurity securitySvc = new FbSecurity(); securitySvc.ConnectionString = this.BuildServicesConnectionString(false); FbUserData user = securitySvc.DisplayUser("SYSDBA"); Console.WriteLine("User name {0}", user.UserName); }
public void AddUserTest() { FbSecurity securitySvc = new FbSecurity(); securitySvc.ConnectionString = this.BuildServicesConnectionString(false); FbUserData user = new FbUserData(); user.UserName = "******"; user.UserPassword = "******"; securitySvc.AddUser(user); }