internal bool ResolveNames(SchemaEntityType entityType) { if (string.IsNullOrEmpty(this.Name)) { return(true); } this._property = entityType.FindProperty(this.Name); return(this._property != null); }
/// <summary> /// Since this method can be used in different context, this method does not add any errors /// Please make sure that the caller of this methods handles the error case and add errors /// appropriately /// </summary> internal bool ResolveNames(SchemaEntityType entityType) { if (string.IsNullOrEmpty(Name)) { // Don't flag this error. This must already must have flaged as error, while handling name attribute return(true); } // Make sure there is a property by this name _property = entityType.FindProperty(Name); return(_property != null); }
/// <summary> /// Since this method can be used in different context, this method does not add any errors /// Please make sure that the caller of this methods handles the error case and add errors /// appropriately /// </summary> /// <param name="entityType"> </param> /// <returns> </returns> internal bool ResolveNames(SchemaEntityType entityType) { if (string.IsNullOrEmpty(Name)) { // Don't flag this error. This must already must have flaged as error, while handling name attribute return true; } // Make sure there is a property by this name _property = entityType.FindProperty(Name); return (_property != null); }