Pre-release

@rdavisau rdavisau released this Jun 21, 2015 · 1 commit to master since this release

Assets 3
Features:
  • You can now define request headers when creating a web source
  • You can now intercept web requests before they are sent, by making use of SetGlobalRequestIntercept and/or SetSpecificWebRequestIntercept<T> methods on the context. Each takes an Action<HttpWebRequest> that can perform any work on the request before it is made. The former applies to all requests, while the latter applies to the specific method or property returning IEnumerable<T>. The specific intercept is run after the global intercept, so can override any changes made by the global intercept. There are also RemoveGlobalRequestIntercept, RemoveSpecificWebRequestIntercept<T> and RemoveAllSpecificWebRequestIntercepts methods for managing intercepts at run-time.
Bugfixes / Stability:
  • Fixed a regression in class disambiguation code would cause the context code to be generated incorrectly.
Pre-release

@rdavisau rdavisau released this Jun 17, 2015 · 8 commits to master since this release

Assets 3
Features:
  • Added a web input type, which supports GET requests to a url that returns json. If the url includes a query string it is also possible to generate a method taking the query parts as parameters.

  • Added a text input type, which allows you to write or paste in json text as a source for your context.

  • Added basic support for json inputs that do not have an array element at the root. Such inputs are exposed as an IEnumerables yielding the single element.
Bugfixes / Stability:
  • Fixed an issue with json containing property names that conflict with C# keywords that would cause context generation to fail.
Other:
  • Input sources for your context are processed in parallel, reducing the time taken to generate a context with many inputs
  • The default 'rows to sample' value was reduced to 50 from the original value of 1,000. That was a little excessive 🐑.
Pre-release

@rdavisau rdavisau released this Jun 7, 2015 · 15 commits to master since this release

Assets 3
Features:
  • File inputs are now streamed from disk and deserialised item-by-item, avoiding loading the complete source when using LINQ operators like Take, TakeWhile, ElementAt etc.
  • Error reporting is slightly more comprehensive :shipit:
Bugfixes / Stability:
  • Fixed an issue where a class definition could be generated to include a property with the same name as the parent class, resulting in a compile error when generating the data context
  • Added namespace disambiguation to input classes to avoid class name conflicts when working with multiple inputs.
Pre-release

@rdavisau rdavisau released this Jun 3, 2015 · 25 commits to master since this release

Assets 3

First release of the Json data context driver for LINQPad. See here for an overview.

Features:
  • Generates a typed data context from any combination of individual files and search paths.