예제 #1
0
        public void DeleteUser()
        {
            try
            {
                FbSecurity securitySvc = new FbSecurity();

                securitySvc.ConnectionString = BuildServicesConnectionString(false);

                FbUserData user = new FbUserData();

                user.UserName = "******";

                securitySvc.DeleteUser(user);
            }
            catch (FbException ex)
            {
                if (ex.ErrorCode == 335544563)
                {
                }
                else
                {
                    throw;
                }
            }
        }
예제 #2
0
        public void DeleteUser()
        {
            FbSecurity securitySvc = new FbSecurity();

            securitySvc.ConnectionString = BuildServicesConnectionString(false);

            FbUserData user = new FbUserData();

            user.UserName = "******";

            securitySvc.DeleteUser(user);
        }
예제 #3
0
        public void AddDeleteUserTest()
        {
            var securitySvc = new FbSecurity();

            securitySvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, false);

            {
                var user = new FbUserData();
                user.UserName     = "******";
                user.UserPassword = "******";
                securitySvc.AddUser(user);
            }

            {
                var user = new FbUserData();
                user.UserName = "******";
                securitySvc.DeleteUser(user);
            }
        }