private void CheckIdentity(T entity) { var meta = MapperConfig.GetIdentity <T>(); if (meta != null) { hasIdentity = true; identity = meta.Member; cachedEntity = entity; } }