コード例 #1
0
ファイル: EntityType.cs プロジェクト: longde123/playscript
 /// <summary>
 /// Validates a EdmMember object to determine if it can be added to this type's 
 /// Members collection. If this method returns without throwing, it is assumed
 /// the member is valid. 
 /// </summary>
 /// <param name="member">The member to validate</param>
 /// <exception cref="System.ArgumentException">Thrown if the member is not a EdmProperty</exception>
 internal override void ValidateMemberForAdd(EdmMember member)
 {
     Debug.Assert(Helper.IsEdmProperty(member) || Helper.IsNavigationProperty(member),
         "Only members of type Property may be added to Entity types.");
 }