Class Database
  
  
  
    - Inheritance
- 
      
      
      Database 
    - Implements
- 
      
      
      
      
      
      
    
    - Inherited Members
- 
    
    
    
    
    
  
    - Namespace
- TabularEditor.TOMWrapper
- Assembly
- TOMWrapper.dll
 
  
  
  
    public sealed class Database : DynamicPropertyObject, ICustomTypeDescriptor, ITabularObject, INotifyPropertyChanged, IHandlerObject, INotifyPropertyChanging, IQueryableObject
   
  
    - Extension Methods
- 
  
  
  
  
Fields
  
  InvalidNameCharacters
  
  
  
  
  
    public static readonly char[] InvalidNameCharacters
   
  Field Value
  
  Properties
  
  
  CompatibilityLevel
  
  
  
  
  
    public int CompatibilityLevel { get; set; }
   
  Property Value
  
  
  
  CompatibilityMode
  
  
  
  
  
    public CompatibilityMode CompatibilityMode { get; set; }
   
  Property Value
  
  
  
  CreatedTimestamp
  
  
  
  
  
    public DateTime? CreatedTimestamp { get; }
   
  Property Value
  
  
  
  Description
  
  
  
  
  
    public string Description { get; set; }
   
  Property Value
  
  
  
  EstimatedSize
  
  
  
  
  
    public string EstimatedSize { get; }
   
  Property Value
  
  
  
  ID
  
  
  
  
  
    public string ID { get; set; }
   
  Property Value
  
  
  
  IsRemoved
  
  
  
  
  
    [Browsable(false)]
public bool IsRemoved { get; }
   
  Property Value
  
  
  
  LastProcessed
  
  
  
  
  
    public DateTime? LastProcessed { get; }
   
  Property Value
  
  
  
  LastSchemaUpdate
  
  
  
  
  
    public DateTime? LastSchemaUpdate { get; }
   
  Property Value
  
  
  
  LastUpdate
  
  
  
  
  
    public DateTime? LastUpdate { get; }
   
  Property Value
  
  
  
  Model
  
  
  
  
  
    [Browsable(false)]
public Model Model { get; }
   
  Property Value
  
  
  
  Name
  
  
  
  
  
    public string Name { get; set; }
   
  Property Value
  
  
  
  ObjectType
  
  
  
  
  
    [Browsable(false)]
public ObjectType ObjectType { get; }
   
  Property Value
  
  
  
  ServerName
  
  
  
  
  
    public string ServerName { get; }
   
  Property Value
  
  
  
  ServerVersion
  
  
  
  
  
    public string ServerVersion { get; }
   
  Property Value
  
  
  
  TOMDatabase
  
  
  
  
  
    [Browsable(false)]
public Database TOMDatabase { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | Database |  | 
    
  
  
  
  Version
  
  
  
  
  
    public long? Version { get; }
   
  Property Value
  
  
  
  Visible
  
  
  
  
  
    public bool Visible { get; set; }
   
  Property Value
  
  Methods
  
  
  ExecuteCommand(string, bool)
  
  
  Executes the specified TMSL script against the connected instance of Analysis Services.
    public void ExecuteCommand(string tmslOrXmla, bool isXmla = false)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | tmslOrXmla |  | 
      
        | bool | isXmla |  | 
    
  
  
  
  ExecuteReader(Server, string, string, string)
  
  
  
  
  
    public static IDataReader ExecuteReader(Server server, string databaseName, string statement, string originalConnectionString)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Server | server |  | 
      
        | string | databaseName |  | 
      
        | string | statement |  | 
      
        | string | originalConnectionString |  | 
    
  
  Returns
  
  
  
  ExecuteReader(string)
  
  
  Executes the specified DAX query against the connected database and returns an AmoDataReader object that enumerates the result
    public IDataReader ExecuteReader(string dax)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | dax |  | 
    
  
  Returns
  
  
  
  ToString()
  
  
  
  
  
    public override string ToString()
   
  Returns
  
  Events
  
  PropertyChanged
  
  
  
  
  
    public event PropertyChangedEventHandler PropertyChanged
   
  Event Type
  
  
  PropertyChanging
  
  
  
  
  
    public event PropertyChangingEventHandler PropertyChanging
   
  Event Type