internal AttributeMappingMember(MemberInfo member, MemberAttribute attribute, AttributeMappingEntity nested) { this._member = member; this._attribute = attribute; this._nested = nested; }
private IEnumerable<MemberInfo> GetReferencedMembers(AttributeMappingEntity entity, string names, string source, Type sourceType) { return names.Split(separators).Select(n => this.GetReferencedMember(entity, n, source, sourceType)); }
internal AttributeMappingTable(AttributeMappingEntity entity, TableBaseAttribute attribute) { this.entity = entity; this.attribute = attribute; }
private MemberInfo GetReferencedMember(AttributeMappingEntity entity, string name, string source, Type sourceType) { var mm = entity.GetMappingMember(name); if (mm == null) { throw new InvalidOperationException(string.Format("AttributeMapping: The member '{0}.{1}' referenced in {2} for '{3}' is not mapped or does not exist", entity.EntityType.Name, name, source, sourceType.Name)); } return mm.Member; }