Grooper.DataSource

Repository connections define the parameters for connecting to a Grooper database.


Inherits from: Grooper.SqlConnectionSettings

Constructors

Signature Description
New ()
New (ConnectionSettings As SqlConnectionSettings)
Parameters
ConnectionSettings
          Type: SqlConnectionSettings
          
New (ds As DataSource)
Parameters
ds
          Type: DataSource
          

Fields

Field Name Field Type Description
ConnectionTimeout As System.Int32 System.Int32
DatabaseName As System.String System.String
EncryptedPassword As System.String System.String
ServerName As System.String System.String
UserName As System.String System.String

Properties

Property Name Property Type Description
IsEmpty System.Boolean Returns true if all properties with a ViewableAttribute are set to their default value.
IsWriteable System.Boolean Returns true if the object is writable, or false if it is not.
Password System.String The password to be used for database access. Windows Authentication will be used when the user name and password properties are left blank.
PgConnectionTimeout System.Int32 The length of time (in seconds) to wait for a connection to the server before terminating the connection attempt and generating an error.
PgDatabaseName System.String The name of the SQL Server database.
PgServerName System.String The name of the SQL Server instance. For details on specifying SQL Server instance names, see the following Microsoft documentation: Logging In to SQL Server.
PgUserName System.String The user name to be used for database access. Windows Authentication will be used when the user name and password properties are left blank.
RepositoryId System.Guid The unique Id for the Grooper Repository.
RepositoryName System.String The name for the Grooper Repository.

Methods

Method Name Description
GetProperties() As PropertyDescriptorCollection
IsPropertyEnabled(PropertyName As String) As Nullable(Of Boolean) Defines whether a property is currently enabled.
Parameters
PropertyName
          Type: String
          The name of the property to determine the enabled state for.
IsPropertyVisible(PropertyName As String) As Nullable(Of Boolean) Defines whether a property is currently visible.
Parameters
PropertyName
          Type: String
          The name of the property to determine the visible state for.
IsType(Type As Type) As Boolean Returns true if the object is of the type specified, or if it derives from the type specfied.
Parameters
Type
          Type: Type
          The type to check.
IsValid() As Boolean
ToString() As String
ValidateProperties() As ValidationErrorList Validates the properties of the object, returning a list of validation errors.