Class MySQLDataStoreBase
  
  Implements MySQL store base functionality
 
  
  
    Inheritance
    System.Object
    
    
    MySQLDataStoreBase
      
   
  
    Implements
    
    
    
    System.IDisposable
    
    
    
   
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
   
  
  Assembly: NFX.MySQL.dll
  Syntax
  
    public abstract class MySQLDataStoreBase : ApplicationComponent, IDataStoreImplementation, IDataStore, IApplicationComponent, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized
   
  Constructors
  
  
  
  
  MySQLDataStoreBase()
  
  
  Declaration
  
    protected MySQLDataStoreBase()
   
  
  
  
  MySQLDataStoreBase(String)
  
  
  Declaration
  
    protected MySQLDataStoreBase(string connectString)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        connectString | 
         | 
      
    
  
  Fields
  
  
  
  STR_FOR_FALSE
  
  
  Declaration
  
    public const string STR_FOR_FALSE = "F"
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  STR_FOR_TRUE
  
  
  Declaration
  
    public const string STR_FOR_TRUE = "T"
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Properties
  
  
  
  
  ConnectString
  Get/Sets MySql database connection string
 
  
  Declaration
  
    [Config]
public string ConnectString { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  DateTimeKind
  
  
  Declaration
  
    [Config(Default = DateTimeKind.Utc)]
public DateTimeKind DateTimeKind { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.DateTimeKind | 
         | 
      
    
  
  
  
  
  ExternalParameters
  Returns named parameters that can be used to control this component
 
  
  Declaration
  
    public IEnumerable<KeyValuePair<string, Type>> ExternalParameters { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> | 
         | 
      
    
  
  
  
  
  FullGDIDS
  When true (default) writes gdid as byte, false - uses ulong ID only
 
  
  Declaration
  
    [Config(Default = true)]
public bool FullGDIDS { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  InstrumentationEnabled
  
  
  Declaration
  
    [Config(Default = false)]
[ExternalParameter(new string[]{"data", "instrumentation"})]
public bool InstrumentationEnabled { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  LogLevel
  
  
  Declaration
  
    [Config]
public StoreLogLevel LogLevel { get; set; }
   
  Property Value
  
  
  
  
  Name
  
  
  Declaration
  
    public string Name { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  StringBool
  When true commits boolean values as StringForTrue/StringForFalse instead of bool values. True by default
 
  
  Declaration
  
    [Config(Default = true)]
public bool StringBool { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  StringForFalse
  
  
  Declaration
  
    [Config(Default = "F")]
public string StringForFalse { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  StringForTrue
  
  
  Declaration
  
    [Config(Default = "T")]
public string StringForTrue { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  TargetName
  
  
  Declaration
  
    [Config]
public string TargetName { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Methods
  
  
  
  
  
  
  
  Declaration
  
    public virtual void Configure(IConfigSectionNode node)
   
  Parameters
  
  
  
  
  ExternalGetParameter(String, out Object, String[])
  Gets external parameter value returning true if parameter was found
 
  
  Declaration
  
    public bool ExternalGetParameter(string name, out object value, params string[] groups)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
      
        | System.Object | 
        value | 
         | 
      
      
        | System.String[] | 
        groups | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  ExternalParametersForGroups(String[])
  Returns named parameters that can be used to control this component
 
  
  Declaration
  
    public IEnumerable<KeyValuePair<string, Type>> ExternalParametersForGroups(params string[] groups)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String[] | 
        groups | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> | 
         | 
      
    
  
  
  
  
  ExternalSetParameter(String, Object, String[])
  Sets external parameter value returning true if parameter was found and set
 
  
  Declaration
  
    public bool ExternalSetParameter(string name, object value, params string[] groups)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        name | 
         | 
      
      
        | System.Object | 
        value | 
         | 
      
      
        | System.String[] | 
        groups | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  GetConnection()
  Allocates MySQL connection
 
  
  Declaration
  
    protected MySqlConnection GetConnection()
   
  Returns
  
  
  
  
  TestConnection()
  
  
  Declaration
  
    public void TestConnection()
   
  Implements
  
  
  
  
      System.IDisposable
  
  
  
  
  Extension Methods