public string Resolve(Type type, object @object) { if (TryConnectionSettingsRoute(type, @object, out var route)) { return(route); } var joinField = GetJoinFieldFromObject(type, @object); return(joinField?.Match(p => _idResolver.Resolve(@object), c => ResolveId(c.Parent, _connectionSettings))); }
public string Id(Type type, object instance) => IdResolver.Resolve(type, instance);
public string Id <T>(T instance) where T : class => IdResolver.Resolve(instance);