public bool attachDb() { try { SqlServerInstance.Server.AttachDatabase( code, new StringCollection { PathDb }, AttachOptions.RebuildLog); setState(); } catch (Exception e) { this.validation = new ValidateMdf(); this.validation.listErrors.Add("AE"); this.validation.isValid = false; } return(isAttached); }
public void validateDb() { validation = new ValidateMdf(this); }
public bool attachDb() { try { SqlServerInstance.Server.AttachDatabase( code, new StringCollection { PathDb }, AttachOptions.RebuildLog); setState(); } catch (Exception e) { this.validation = new ValidateMdf(); this.validation.listErrors.Add("AE"); this.validation.isValid = false; } return isAttached; }