10 2023 档案
摘要:参考 Reference 引用某个程序集 PackageReference 引用某个 NuGet 包 ProjectReference 引用某个项目 Compile 常规的 C# 编译 None 没啥特别的编译选项,就为了执行一些通用的操作(或者是只是为了在 Visual Studio 列表中能够有
阅读全文
摘要:Service public interface ITestFileService : IApplicationService { public Task<string> getDownloadUrl(); } public class TestFileService : XXXManagement
阅读全文
摘要:仅当局部变量在相同语句中进行声明和初始化时,才能使用 var;变量不能初始化为 null,也不能初始化为方法组或匿名函数。 参考
阅读全文
摘要:定义一个自定义的配置文件 在调试配置中设置启动环境 这里的值填入刚刚设置的配置文件appsetings.{配置文件名字}.json 的配置文件名字 启动即可 系统启动时,首先会检查{配置文件名字}是否存在,存在的话使用appsettings.{配置文件名字}.json,不存在则使用appsettin
阅读全文
摘要:参考 列名 public class Blog { [Column("blog_id")] public int BlogId { get; set; } public string Url { get; set; } } 列数据类型 public class Blog { public int B
阅读全文
摘要:Decimal报错: No store type was specified for the decimal property 'GridElectricityPurchase' on entity type 'ChargeDischarge'. This will cause values to
阅读全文
摘要:参考 .gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。 git rm -r --cached . git add . git commit -m "update .gitignore" 再推送 git rm -r -
阅读全文