<?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: Lincoln Tran</title>
    <description>The latest articles on DEV Community by Lincoln Tran (@lincoln).</description>
    <link>https://dev.to/lincoln</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%2F964660%2F3efc6016-4254-4076-b577-03a90714e0b3.jpg</url>
      <title>DEV Community: Lincoln Tran</title>
      <link>https://dev.to/lincoln</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lincoln"/>
    <language>en</language>
    <item>
      <title>Asp.Net : Code first or Database first ?</title>
      <dc:creator>Lincoln Tran</dc:creator>
      <pubDate>Thu, 10 Nov 2022 05:12:43 +0000</pubDate>
      <link>https://dev.to/lincoln/aspnet-code-first-or-database-first--2000</link>
      <guid>https://dev.to/lincoln/aspnet-code-first-or-database-first--2000</guid>
      <description>&lt;p&gt;In database related programming, we can hear about 2 key words "code first - database first" when we start to design backend architecture. So, what is code/database first? Is it important in coding ?&lt;/p&gt;

&lt;p&gt;The answer is yes, it helps you easily control model database and manages owner resource better. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Code-first&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;We will not create the tables under the database first, but rely on the classes/models on C# to create the database. Net supports Entity Framework Core -  is an Object/Relational Mapping (O/RM) framework. It is an enhancement to ADO.NET that gives developers an automated mechanism for accessing &amp;amp; storing the data in the database.&lt;br&gt;
The neweset EF core version is 7.0. Find out more in: &lt;a href="https://learn.microsoft.com/en-us/ef/core/what-is-new/"&gt;https://learn.microsoft.com/en-us/ef/core/what-is-new/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the code-first approach, EF Core API creates the database and tables using migration based on the conventions and configuration provided in your domain classes. It creates the database based on the parameter passed in the base constructor of your context class- using DB context.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Database-first&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Otherwise, we already have tables under the database and we just need to create C# classes to map those tables. We also use EF build a data object model and the complete application for you with very little code.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5aQ1PVxf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxdxkxshr8eueul0s3bf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5aQ1PVxf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxdxkxshr8eueul0s3bf.png" alt="Image description" width="880" height="653"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In short, the code-database first technique in backend system design is extremely necessary for users. You will understand what system architecture you need and what is important in backend design.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>codefirst</category>
      <category>databasefirst</category>
      <category>csharp</category>
    </item>
    <item>
      <title>Await / Async in .NET</title>
      <dc:creator>Lincoln Tran</dc:creator>
      <pubDate>Fri, 04 Nov 2022 03:57:45 +0000</pubDate>
      <link>https://dev.to/lincoln/await-async-in-net-3c1l</link>
      <guid>https://dev.to/lincoln/await-async-in-net-3c1l</guid>
      <description>&lt;p&gt;Hello everyone, I've worked with await/async recently but I got stuck in there . I dont know how the threads will run in system with keyword async/await?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;I  declare async and don't use await in the function body (it shows a warning) so is it asynchronous when calling that function?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I have 3 async functions A, B, C that I call sequentially&lt;br&gt;
A&lt;br&gt;
B&lt;br&gt;
C&lt;br&gt;
does it run asynchronously without await or need ?&lt;br&gt;
await A&lt;br&gt;
await B&lt;br&gt;
await C&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I read some Microsoft document it said "when we meet the keyword 'await', the remaining code will be non-blocking  and if i think code with await will cotinue running without response's waiting, is that right?"&lt;br&gt;
ex: &lt;br&gt;
async A(){&lt;br&gt;
await something - take 5 seconds;&lt;br&gt;
call api();&lt;br&gt;
}&lt;br&gt;
With the above code, is it Async programming ?&lt;br&gt;
Thanks all guys!!!&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>csharp</category>
      <category>dotnet</category>
      <category>async</category>
      <category>awai</category>
    </item>
  </channel>
</rss>
