private void BuildHierarchy(SPWeb web) { Bags.Add(new SPWebPropertyBag(web)); Bags.Add(new SPSitePropertyBag(web.Site)); Bags.Add(new SPWebAppPropertyBag(web.Site.WebApplication)); Bags.Add(new SPFarmPropertyBag(web.Site.WebApplication.Farm)); }
private void BuildHierarchy(SPWeb web) { Bags.Add(new SPWebPropertyBag(web)); Bags.Add(new SPSitePropertyBag(web.Site)); Bags.Add(new SandboxWebAppPropertyBag(web.Site.ID)); Bags.Add(new SandboxFarmPropertyBag()); }
public override void OnStart() { if (!Bags.Any()) { Bags.Add(new Bag(30)); } InputEventManager.DoubleClick += HandleDoubleClick; }
public DefaultNHibernatePatternsHolder(IDomainInspector domainInspector, IExplicitDeclarationsHolder explicitDeclarations) { Poids.Add(new PoIdPattern()); Sets.Add(new SetCollectionPattern()); Bags.Add(new BagCollectionPattern()); Lists.Add(new ListCollectionPattern(domainInspector)); Arrays.Add(new ArrayCollectionPattern()); Components.Add(new ComponentPattern(domainInspector)); Dictionaries.Add(new DictionaryCollectionPattern()); PoidStrategies.Add(new HighLowPoidPattern()); PoidStrategies.Add(new GuidOptimizedPoidPattern()); PersistentPropertiesExclusions.Add(new ReadOnlyPropertyPattern()); ManyToOneRelations.Add(new OneToOneUnidirectionalToManyToOnePattern(domainInspector, explicitDeclarations)); ManyToOneRelations.Add(new PolymorphicManyToOnePattern(domainInspector)); OneToManyRelations.Add(new PolymorphicOneToManyPattern(domainInspector)); HeterogeneousAssociations.Add(new HeterogeneousAssociationOnPolymorphicPattern(domainInspector)); }
public DefaultNHibernatePatternsHolder(IDomainInspector domainInspector, IExplicitDeclarationsHolder explicitDeclarations) { if (domainInspector == null) { throw new ArgumentNullException("domainInspector"); } Poids.Add(new PoIdPattern()); Sets.Add(new SetCollectionPattern()); Bags.Add(new BagCollectionPattern()); Lists.Add(new ListCollectionPattern(domainInspector)); Arrays.Add(new ArrayCollectionPattern()); Components.Add(new ComponentPattern(domainInspector)); Dictionaries.Add(new DictionaryCollectionPattern()); PoidStrategies.Add(new HighLowPoidPattern()); PoidStrategies.Add(new GuidOptimizedPoidPattern()); PersistentPropertiesExclusions.Add(new ReadOnlyPropertyPattern()); ManyToOneRelations.Add(new OneToOneUnidirectionalToManyToOnePattern(explicitDeclarations)); }
/// <summary> /// Builds the heirarchy for the farm only context. /// </summary> /// <param name="farm">The farm to use</param> private void BuildHierarchy(SPFarm farm) { Bags.Add(new SPFarmPropertyBag(farm)); }
private void BuildHierarchy(SPWeb web) { Bags.Add(new SPWebPropertyBag(web)); Bags.Add(new SPSitePropertyBag(web.Site)); }
/// <summary> /// Constructs the FarmPropertyBagHierarchy /// </summary> public SandboxFarmPropertyBagHierarchy() { Bags.Add(new SandboxFarmPropertyBag()); }