<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ef-Core on TinyChen's Blog</title><link>https://tinychen.com/tags/ef-core/</link><description>Recent content in Ef-Core on TinyChen's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 23 Jul 2026 04:00:00 +0800</lastBuildDate><atom:link href="https://tinychen.com/tags/ef-core/index.xml" rel="self" type="application/rss+xml"/><item><title>.NET配置环境变量与User Secrets</title><link>https://tinychen.com/20260303-dotnet-config-and-secrets/</link><pubDate>Tue, 03 Mar 2026 12:00:00 +0800</pubDate><guid>https://tinychen.com/20260303-dotnet-config-and-secrets/</guid><description>&lt;p&gt;本文主要记录 ASP.NET Core / 通用 Host 下配置加载与密钥存放：环境变量如何切换 &lt;code&gt;appsettings.{Environment}.json&lt;/code&gt;、本地 User Secrets 防泄露、以及 &lt;code&gt;dotnet ef&lt;/code&gt; 跟随同一套环境变量读连接串。&lt;/p&gt;</description></item><item><title>.NET EF Core对接SQLite与首次迁移</title><link>https://tinychen.com/20260228-dotnet-database/</link><pubDate>Sat, 28 Feb 2026 20:01:10 +0800</pubDate><guid>https://tinychen.com/20260228-dotnet-database/</guid><description>&lt;p&gt;本文主要记录在 &lt;code&gt;octans&lt;/code&gt; 类 .NET Web 项目中接入 EF Core 与 SQLite 的过程：安装包、定义 &lt;code&gt;MediaItem&lt;/code&gt; / &lt;code&gt;Movie&lt;/code&gt; / &lt;code&gt;MediaFile&lt;/code&gt;、配置 &lt;code&gt;AppDbContext&lt;/code&gt;（TPH、JSON 列表转换、唯一索引与 Value Comparer），以及 &lt;code&gt;dotnet ef migrations&lt;/code&gt; 生成库文件。&lt;/p&gt;</description></item></channel></rss>