Ejemplo n.º 1
0
        public object Do(string command, object args)
        {
            ICommandChannel nestedCommandChannel = dataStore as ICommandChannel;

            if (nestedCommandChannel == null)
            {
                if (dataStore == null)
                {
                    throw new NotSupportedException(string.Format(CommandChannelHelper.Message_CommandIsNotSupported, command));
                }
                else
                {
                    throw new NotSupportedException(string.Format(CommandChannelHelper.Message_CommandIsNotSupportedEx, command, dataStore.GetType()));
                }
            }
            return(StaSafeHelper.Invoke(() => nestedCommandChannel.Do(command, args)));
        }
Ejemplo n.º 2
0
 public UpdateSchemaResult UpdateSchema(bool doNotCreateIfFirstTableNotExist, params DBTable[] tables)
 {
     return(StaSafeHelper.Invoke(() => dataStore.UpdateSchema(doNotCreateIfFirstTableNotExist, tables)));
 }
Ejemplo n.º 3
0
 public SelectedData SelectData(params SelectStatement[] selects)
 {
     return(StaSafeHelper.Invoke(() => dataStore.SelectData(selects)));
 }
Ejemplo n.º 4
0
 public ModificationResult ModifyData(params ModificationStatement[] dmlStatements)
 {
     return(StaSafeHelper.Invoke(() => dataStore.ModifyData(dmlStatements)));
 }
Ejemplo n.º 5
0
 public DBTable[] GetStorageTables(params string[] tables)
 {
     return(StaSafeHelper.Invoke(() => ((IDataStoreSchemaExplorer)dataStore).GetStorageTables(tables)));
 }
Ejemplo n.º 6
0
 public string[] GetStorageTablesList(bool includeViews)
 {
     return(StaSafeHelper.Invoke(() => ((IDataStoreSchemaExplorer)dataStore).GetStorageTablesList(includeViews)));
 }