示例#1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     if (SelectedCollection != null && AvailableCollections.Contains(SelectedCollection))
     {
         Core.Settings.Default.DeleteCollection(SelectedCollection);
         AvailableCollections.Remove(SelectedCollection);
     }
 }
示例#2
0
        public IQueryable <T> Collection <T>(string collectionName = null)
        {
            collectionName ??= typeof(T).Name;

            if (!AvailableCollections.Contains(collectionName))
            {
                throw new NotSupportedException($"The collection {collectionName} is not available in this context");
            }

            return(Connector.ReadOnlyCollection <T>(SessionId, collectionName));
        }