1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
7
using System.Collections.Generic;
10
using ICSharpCode.Data.EDMDesigner.Core.EDMObjects.Common;
11
using System.Collections.ObjectModel;
15
namespace ICSharpCode.Data.EDMDesigner.Core.EDMObjects.SSDL
17
public class SSDLContainer : EDMObjectBase
21
private EventedObservableCollection<EntityType.EntityType> _entityTypes;
22
private EventedObservableCollection<Association.Association> _associationSets;
23
private EventedObservableCollection<Function.Function> _functions;
29
public string Namespace { get; set; }
30
public string Provider { get; set; }
31
public string ProviderManifestToken { get; set; }
33
public EventedObservableCollection<EntityType.EntityType> EntityTypes
37
if (_entityTypes == null)
39
_entityTypes = new EventedObservableCollection<EntityType.EntityType>();
40
_entityTypes.ItemAdded += entityType => entityType.Container = this;
47
public EventedObservableCollection<Association.Association> AssociationSets
51
if (_associationSets == null)
53
_associationSets = new EventedObservableCollection<Association.Association>();
54
_associationSets.ItemAdded += association => association.Container = this;
57
return _associationSets;
61
public EventedObservableCollection<Function.Function> Functions
65
if (_functions == null)
67
_functions = new EventedObservableCollection<Function.Function>();