コード例 #1
1
		private PocoRuntime()
		{
			Grammar = new ODataGrammar();
			UsePluralUrls = true;
			UriBuilder = new EntityUriBuilder();
			RequestSetup = (request) => {};
			DisposeHandler = true;
			CustomFormatters = new MediaTypeFormatter[0];
		}
コード例 #2
0
		public PocoConfiguration()
		{
			Grammar = new ODataGrammar();
			UsePluralUrls = true;
			UriBuilder = new EntityUriBuilder();
			RequestSetup = (request) => {};
			DisposeHandler = true;
			CustomFormatters = new MediaTypeFormatter[0];
			ResponseReader = (response, formatters, type) =>
			                 	{
									return response.Content.ReadAsAsync(
										typeof(IEnumerable<>).MakeGenericType(type),
										formatters);
			                 	};
		}