private static IMemberMapping GetReferencedMember(string name, string sourceName, EntityMapping entity) { var mm = entity.GetMappingMember(name); if (mm == null) { throw new InvalidOperationException(string.Format(Res.AttrbuteMappingError, entity.entityType.Name, name, sourceName, entity.entityType.Name)); } return(mm); }
private static IMemberMapping GetReferencedMember(string name, string sourceName, EntityMapping entity) { var mm = entity.GetMappingMember(name); if (mm == null) throw new InvalidOperationException(string.Format(Res.AttrbuteMappingError, entity.entityType.Name, name, sourceName, entity.entityType.Name)); return mm; }