t4 模板文件 第一步,在项目中设置 t4 模板文件。 不知道 T4 模板的,可以自行查阅资料或查看 https://learn.microsoft.com/zh-cn/visualstudio/modeling/code-generation-and-t4-text-templates?view[......] 继续阅读

2024年5月7日 0条评论 3918点热度 2人点赞 痴者工良 阅读全文

T4 Template Files The first step is to set up T4 template files in the project. If you are unfamiliar with T4 templates, you can look up information[......] 继续阅读

2024年5月7日 0条评论 148点热度 2人点赞 痴者工良 阅读全文

图片转换需要安装:https://ghostscript.com/ 引入: <ItemGroup> <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.4.0" />[......]继续阅读

2023年10月25日 0条评论 2057点热度 0人点赞 痴者工良 阅读全文

图片转换需要安装:https://ghostscript.com/ 引入: <ItemGroup> <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.4.0"[......]继续阅读

2023年10月25日 0条评论 98点热度 0人点赞 痴者工良 阅读全文

在.NET Core 项目钟(类库),使用Entity Framework,建立模型生成数据库时,失败 Could not load assembly 'xxx'. Ensure it is referenced by the startup project 'xxx'. 改成 64 位即可 假[......] 继续阅读

2019年12月15日 0条评论 6507点热度 14人点赞 痴者工良 阅读全文

In a .NET Core project (library), using Entity Framework, the database generation fails when establishing the model. Could not load assembly 'xxx'. E[......]继续阅读

2019年12月15日 0条评论 82点热度 14人点赞 痴者工良 阅读全文

https://docs.microsoft.com/zh-cn/ef/core/miscellaneous/configuring-dbcontext 有两种配置方式,一种是 Dbcontext 构造函数和依赖注入同时使用。 public void ConfigureServices(IServi[......] 继续阅读

2019年7月29日 1条评论 8367点热度 14人点赞 痴者工良 阅读全文

有两种配置方式,一种是 DbContext 构造函数和依赖注入同时使用。 public void ConfigureServices(IServiceCollection services) 另一种是在 OnConfiguring 内配置使用。 [......] 继续阅读

2019年7月29日 1条评论 112点热度 14人点赞 痴者工良 阅读全文