string IUrlParameter.GetString(IConnectionConfigurationValues settings) { var nestSettings = settings as IConnectionSettingsValues; if (nestSettings == null) { throw new Exception("Tried to pass field name on querysting but it could not be resolved because no nest settings are available"); } var infer = new Inferrer(nestSettings); return(infer.Field(this)); }
private void Write(string queryType, Field field = null) => Write(queryType, field == null ? null : new Dictionary <string, string> { { "field", _infer.Field(field) } });