Пример #1
0
            public bool MayLoadToDefaultCollection(RavenEtlItem item, string loadToCollection)
            {
                if (item.Collection != null)
                {
                    return(_collectionNameComparisons[item.Collection][loadToCollection]);
                }

                var collection = item.CollectionFromMetadata;

                return(collection?.CompareTo(loadToCollection) == 0);
            }
Пример #2
0
            public bool MayLoadToDefaultCollection(RavenEtlItem item)
            {
                if (item.Collection == null)
                {
                    return(false);
                }

                foreach (string loadToCollection in LoadToCollections)
                {
                    if (_collectionNameComparisons.ContainsKey(loadToCollection))
                    {
                        return(true);
                    }
                }

                return(false);
            }