Пример #1
0
 /// <summary>
 /// Initializes a new instance of Structural Type with the given members
 /// </summary>
 /// <param name="name">name of the structural type</param>
 /// <param name="namespaceName">namespace of the structural type</param>
 /// <param name="version">version of the structural type</param>
 /// <param name="dataSpace">dataSpace in which this edmtype belongs to</param>
 /// <exception cref="System.ArgumentNullException">Thrown if either name, namespace or version arguments are null</exception>
 internal StructuralType(string name, string namespaceName, DataSpace dataSpace)
     : base(name, namespaceName, dataSpace)
 {
     _members         = new MemberCollection(this);
     _readOnlyMembers = _members.AsReadOnlyMetadataCollection();
 }
Пример #2
0
 /// <summary>
 /// Internal parameterless constructor for bootstrapping edmtypes
 /// </summary>
 internal StructuralType()
 {
     _members         = new MemberCollection(this);
     _readOnlyMembers = _members.AsReadOnlyMetadataCollection();
 }