GetMappingMember() приватный Метод

private GetMappingMember ( string name ) : MemberMapping
name string
Результат MemberMapping
Пример #1
0
        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);
        }
Пример #2
0
 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;
 }