GetMappingMember() private méthode

private GetMappingMember ( string name ) : MemberMapping
name string
Résultat MemberMapping
Exemple #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);
        }
Exemple #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;
 }