<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tony Moffatt on Medium]]></title>
        <description><![CDATA[Stories by Tony Moffatt on Medium]]></description>
        <link>https://medium.com/@moffata2?source=rss-5332b7a3bfd7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C9G3Tr-n5bJUUTloRKVKQw.jpeg</url>
            <title>Stories by Tony Moffatt on Medium</title>
            <link>https://medium.com/@moffata2?source=rss-5332b7a3bfd7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:16:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moffata2/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dynamic DynamoDB Table Name in .Net Core]]></title>
            <link>https://moffata2.medium.com/dynamic-dynamodb-table-name-in-net-core-8ec2fde60e0c?source=rss-5332b7a3bfd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ec2fde60e0c</guid>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Tony Moffatt]]></dc:creator>
            <pubDate>Sat, 20 Feb 2021 17:30:35 GMT</pubDate>
            <atom:updated>2021-02-20T21:39:48.318Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dynamic DynamoDB Table Name in .Net Core</h3><p>In DynamoDB we have static table names and the problem I am trying to solve is choosing the correct tables in development or production. To overcome this I prefix the table name with the <strong>EnvironmentName</strong>.</p><p>If you would like to learn about integrating DynamoDB with your .Net Core project check out my course <a href="https://www.udemy.com/course/aws-for-net-core-developers/?referralCode=E2FF071F8CCDE1A9A3CB"><strong>AWS for .Net Core Developers</strong></a> on Udemy.</p><p><a href="https://www.udemy.com/course/aws-for-net-core-developers/?referralCode=E2FF071F8CCDE1A9A3CB">AWS for .Net Core Developers</a></p><p>First I create my class which represents my DynamoDB tables.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad0c185d0d30fd66eecc22889f627442/href">https://medium.com/media/ad0c185d0d30fd66eecc22889f627442/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/57c4db57ea04f75ce10fcaec6771b81d/href">https://medium.com/media/57c4db57ea04f75ce10fcaec6771b81d/href</a></iframe><p>Then in my User Repo I inject my <strong>IAmazonDynamoDB</strong> client and <strong>IWebhostEnvironment </strong>which I use to assign a prefix for my DynamoDB table name with my <strong>EnvironmentName</strong>. So when I am running in Development my table name becomes <strong>DevelopmentUsers </strong>and in production my table name becomes <strong>ProductionUsers.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Li88R4tGS_MU__her3V3HQ.png" /><figcaption>AWS Console</figcaption></figure><p>Hope this helps :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ec2fde60e0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>