Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何在 Entity Framework Core 中按周分组?
在实体框架 6 中我可以使用SqlFunctions DatePart http msdn microsoft com en us library dd487171 aspx method var byWeek data GroupBy x
LINQ
groupby
NetCore
EntityFrameworkCore
weeknumber
在 ASP.NET Core 3.1 中使用包含“System.Web.HttpContext”的旧项目
我们有一些用 Net Framework编写的遗留项目 应该由由ASP NET Core3 1编写的API项目使用 问题是这些遗留项目正在使用 System Web HttpContext 您知道它不再存在于 net core 中 现在我们
c
ASPNETCore
NetCore
根据 .NET Core 2.1 中的更改重新加载 Serilog JSON 配置
我目前正在开发 ASP NET Core 2 1 应用程序 并使用 Serilog 进行日志记录 我想在运行时为我的 Serilog 实现重新加载应用程序设置文件 我的目标是在运行时更改日志级别 例如我写入minimumLevelDebug
c
json
logging
NetCore
Serilog
使用 NLog .NET Core 将日志记录到 PostgreSQL DB
我尝试将日志记录集成到 NET Core 中的数据库 我能够设置 NLog 并将消息记录到 SQL Server 这很容易 但是当我尝试将 DB 切换到 PostgreSQL 时 似乎没有记录任何内容 以下是startup cs中的代码 p
postgresql
logging
ASPNETCore
NetCore
npgsql
如何在没有 x5c 的情况下验证来自 jwks 的 JWT 签名
我有一个 JWT 安全令牌 需要通过 jwks 端点进行验证 jwks 中的数据如下所示 keys kty RSA e AQAB use sig alg RS256 n kid 2132132 b1e6 47e7 a30f 1831942f
c
NetCore
JWT
rsa
jwk
如果.Net Core可以在Windows上运行,为什么不能在.Net Framework中引用.Net Core DLL?
我明白为什么 Net Framework 可能会在 Net Core IE 中导致问题 因为不存在特定于 Windows 平台的 API 但是为什么不能直接引用 Net Core 作为 Net Framework 中的库呢 如果 Net C
c
NET
WPF
ASPNETCore
NetCore
azure webjob:读取 appSettings.json 并将配置注入 TimerTrigger
我无法从 webjob 中的 appSettings json 文件读取配置值 webjob 使用以下 nuget 包 我的控制台应用程序 webjob 中有两个设置文件 应用程序设置 development json 应用程序设置 生产
NetCore
azurewebjobs
appSettings
azurewebjobssdk
netcore22
.NET Core MVC 中的可选模型属性绑定
我已经创建了一个AccountModel它具有以下属性 public class AccountModel Required EmailAddress public string Email get set Required StringL
c
ASPNETMVC
ASPNETCore
NetCore
.Net core 中的 log4net AdoNetAppender 不支持?
我正在尝试在我们的 dot net core 1 1 2 应用程序中实现 log4net 2 0 8 ConsoleAppender 工作正常 但 AdoNetAppender 抛出错误 无法加载类型 log4net Appender Ad
NetCore
log4net
adonetappender
project.json 等效于 InternalsVisibleTo
Net Core 的项目 json https learn microsoft com en us dotnet articles core tools project json copyright允许配置传统 Net 应用程序使用通常放置
NET
netassembly
NetCore
projectjson
.Net Core 数据注释 - 使用共享资源进行本地化
我想使用共享的 resx 文件来指定所有可翻译的字符串 既是为了翻译方便 更重要的是为了避免出现与 DRY 原则冲突的数十个单独的 resx 文件 我让它与 IStringLocalizer 一起用于控制器和视图 但我只是不知道如何为模型的
NetCore
Localization
annotations
Docker 中的 Web api 无法连接到主机上的 SQL Server,并出现登录前握手错误
首先有一些类似的问题 但我已经尝试了我能找到的所有建议 但似乎没有任何效果 如果你能找到我没有提到的 请评论 我会尝试一下 概要是我正在尝试将 Docker 容器中的 NET Core 3 1 Web api 连接到主机上的 SQL Ser
sqlserver
Docker
NetCore
ASP.NET Core Identity 更改登录 URL
我正在使用 ASP NET Core 2 1 并且使用脚手架来添加身份 工作正常 除了当我尝试转到需要登录的页面时 它需要我 Identity Account Login ReturnUrl 如何将其更改为仅转到 Account Login
NET
ASPNETCore
NetCore
aspnetidentity
签署.net核心程序集的正确方法
我正在尝试签署 net core 库 但我不确定我是否正确执行了所有操作 1 使用VS命令提示符IS调用sn k mykey snk 2 复制mykey snk到我的项目文件夹 3 in project json添加了密钥文件 framew
c
NET
NetCore
strongname
.NET Core 中 WebRequest 的重定向
我使用 NET 4 7 1 用 C 编写了以下程序 var req HttpWebRequest WebRequest Create myUrl req AllowAutoRedirect false var rsp req GetResp
c
NetCore
httpWebRequest
aspnetcore20
.Net Core 模拟无法与 Process.Start 一起使用
在 Net Core 下使用模拟时 我似乎无法以其他用户身份启动进程 我在 Linqpad 中以 User1 身份运行此脚本 并尝试以 User2 身份启动程序 起初 模仿似乎有效 Console Writeline 当前用户的 s 从 U
c
ASPNETCore
NetCore
impersonation
windowsidentity
如何在不使用实体框架的情况下从.Net Core连接到SQL Server?
我们如何从 Net Core连接到SQL Serverwithout使用实体框架 你可以简单地使用传统的方式SqlConnection 这是一个例子 public class BaseDataAccess protected string
sqlserver
NetCore
.NET Core 中的跨平台文件名处理
如何处理文件名System IO以跨平台方式运行类以使其在 Windows 和 Linux 上运行 例如 我编写的代码在 Windows 上完美运行 但它不会在 Ubuntu Linux 上创建文件 var tempFilename Dat
c
Linux
NetCore
使用 System.Text.Json 进行自定义反序列化
我的项目中有一个 JSON 字符串 例如 来自 API 调用 我也先搜索 但没有找到符合我情况的 property property 1 1 property 2 true property 3 property 3 1 11 proper
c
NetCore
systemtextjson
.net Core:如何从 C# 代码传递参数并运行 Azure 数据工厂管道?
我在用Microsoft Azure 管理 DataFactories net 核心包 我使用以下代码来获取访问 C net core 中的 azure 数据工厂管道所需的令牌 public static void RunDataFacto
c
Azure
ASPNETCore
NetCore
azuredatafactory
1
2
3
4
5
6
...57
»