<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Philip Schoeman</title>
    <description>The latest articles on DEV Community by Philip Schoeman (@philipcoder).</description>
    <link>https://dev.to/philipcoder</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F227488%2F12991678-890f-4ed1-8bbb-afaf64fdc647.jpeg</url>
      <title>DEV Community: Philip Schoeman</title>
      <link>https://dev.to/philipcoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/philipcoder"/>
    <language>en</language>
    <item>
      <title>WillCore.Data (Entity Framework for Node.JS)</title>
      <dc:creator>Philip Schoeman</dc:creator>
      <pubDate>Thu, 23 Jan 2020 19:14:17 +0000</pubDate>
      <link>https://dev.to/philipcoder/willcore-data-entity-framework-for-node-js-2nnl</link>
      <guid>https://dev.to/philipcoder/willcore-data-entity-framework-for-node-js-2nnl</guid>
      <description>&lt;p&gt;A while back I wanted to use MySQL in a NodeJS project. Coming from a C# background, I wanted to use something like Entity Framework. To my surprise I found that there is no Entity Framework equivalent for Node, so I decided to write my own.&lt;/p&gt;

&lt;p&gt;I wanted something that supports code-first database creation, migrations and to write my queries using nothing else than JavaScript.&lt;/p&gt;

&lt;p&gt;So I built a library (or framework) that is small and yet powerful to allow me to do what I wanted to do. It turned out pretty well (or I think), and just wanted to share it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/PhilipCoder/willcore.data"&gt;https://github.com/PhilipCoder/willcore.data&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Features:&lt;br&gt;
1) Code-first database generation.&lt;br&gt;
2) Simple API.&lt;br&gt;
3) Supports queryables.&lt;br&gt;
4) Database migrations.&lt;br&gt;
5) Async&lt;br&gt;
6) Using only JS to query a DB.&lt;/p&gt;

&lt;p&gt;Please note that it is still the first release, so any feedback on improvements would be wellcome.&lt;/p&gt;

</description>
      <category>orm</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>WillCore.Requests: Auto Generating Fetch and XMLXHR Requests for Web API</title>
      <dc:creator>Philip Schoeman</dc:creator>
      <pubDate>Wed, 11 Sep 2019 07:47:39 +0000</pubDate>
      <link>https://dev.to/philipcoder/willcore-requests-auto-generating-fetch-and-xmlxhr-requests-for-web-api-35k8</link>
      <guid>https://dev.to/philipcoder/willcore-requests-auto-generating-fetch-and-xmlxhr-requests-for-web-api-35k8</guid>
      <description>&lt;h1&gt;
  
  
  .NET CORE 2.2 WebAPI and JavaScript
&lt;/h1&gt;

&lt;p&gt;A developer usually tend to avoid repetitive work. In coding we have the DRY principle, and I like to apply that philosophy to the way I code. That is why I got frustrated typing out Fetch request after Fetch request trying to consume a .NET Core Web API service I wrote for a project of my own. Why can't I just reference a WSDL and add a service reference to my JS?&lt;/p&gt;

&lt;p&gt;That is when I got the idea to write a library to build JS code from your controllers, parameters and results. The generated code should also have full JSDoc comments so you can have intellisense support in Visual Studio. &lt;/p&gt;

&lt;p&gt;I tried different routes, from T4 templates to building JavaScript via a node reference in C#. In the end I ended up with custom templates and a hierarchical C# class structure mimicking that of JavaScript.&lt;/p&gt;

&lt;p&gt;I am planning to add the following to the library: &lt;br&gt;
1) C# code generator that will also automatically build a NuGet package with all the code to consume your API.&lt;br&gt;
2) C# class and action level attributes that allows you to generate custom JSDoc description comments.&lt;br&gt;
3) Functionality to auto generate a HTML page that will allow you to add predefined, calculated and static parameters and results for every controller action, so that you can test your API by simply open the page.&lt;/p&gt;

&lt;p&gt;I think it turned out pretty good, but any feedback is welcome. &lt;/p&gt;

&lt;p&gt;Please note that the library is still in alpha state, but I have used it on a different projects and it seems quite stable. Is this something people would use?&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/PhilipCoder/WillCoreRequests"&gt;https://github.com/PhilipCoder/WillCoreRequests&lt;/a&gt;&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
