JSFiddle - React, Tailwind, and code Playground

by dixin

HTML

<pre class="code"><span style="color: blue;">public partial class </span><span style="color: rgb(43, 145, 175);">AdventureWorks </span><span style="color: black;">: </span><span style="color: rgb(43, 145, 175);">DbContext
</span><span style="color: black;">{
    </span><span style="color: blue;">protected override void </span><span style="color: black;">OnModelCreating(</span><span style="color: rgb(43, 145, 175);">DbModelBuilder </span><span style="color: black;">modelBuilder)
    {
        </span><span style="color: blue;">base</span><span style="color: black;">.OnModelCreating(modelBuilder);
<pre><code>    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;// Add functions on AdventureWorks to entity model.
    &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;modelBuilder.Conventions.Add(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;FunctionConvention&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;AdventureWorks&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;());

    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;// Add all complex types used by functions.
    &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;modelBuilder.ComplexType&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;ContactInformation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;();
    modelBuilder.ComplexType&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;ManagerEmployee&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;();
    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;// ...
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}
</code></pre>
<p>}</span></pre>