-7 问答列表

使用 EF 时出现类型转换问题。在 C# 中使用 Func 进行 CompileAsyncQuery,用于返回可为 null 的类型

作者:santosh kumar patro 提问时间:11/1/2023

我在使用 EF 时遇到类型转换错误。CompileAsyncQuery 定义一个函数,该函数应返回可为 null 的类型 (Memo?)。我正在使用的代码片段如下: public static re...

使用 IEEE 754 浮点格式的 8 位版本查找 32 到以 10 为基数的表示形式

作者:Ajb030603 提问时间:11/1/2023

使用以下 8 位版本的 IEEE 754 浮点格式,如实际情况所示:表示 32 到基数 10 Sign 1-bit Expontent 3-bits Mantissa 4-bits 我预计没有足...

如何在实体框架中包含类的任何属性?

作者:Mesut Kızılay 提问时间:11/1/2023

public class City:IEntity { public int ID { get; set; } public string ILKODU { get; set; } public...

ASP.NET Core 安装包

作者:Volt 提问时间:11/1/2023

我是 ASP.NET Core 的新手,我面临着这个顽固的问题。当我尝试下载SqlServer的Entity Framework Core时,它返回的错误与发布的图片一样。我非常感谢您的帮助 尝试下载...

EF Core 7.0 (PostgresSQL) 生成 IQueryable with RowNumber concept

作者:sarvpk 提问时间:11/2/2023

我有一个场景,一个学生(由 StudentId 标识)拥有许多课程。每门课程都有 StudentId(FK) 和成绩(简单文本类型)。我想构建一个 IQueryable,在按降序排序时按课程一年级提取...

EF 生成低效查询

作者:user2363676 提问时间:11/3/2023

我需要得到一些计数: SELECT detail.detailId, COUNT(*) as Total, COUNT(CASE when t.Status = 1 and t.Type = 2 t...

在 Rails 7 中使用多态关联的不允许的参数

作者:Saulinho 提问时间:11/4/2023

根据上图,我做了一个简单的例子。 型号: Person class Person < ApplicationRecord belongs_to :personable, polymorphic:...

从 Core 7 Web API 终结点获取纯文本响应 ASP.NET 获取纯文本响应

作者:Shaggydog 提问时间:11/1/2023

我有一个简单的 ASP.NET Core 7 Web API 方法: [HttpPost("processPiece")] public async Task<ActionResult<string...

无法在 ruby on rails 中更新我的商店资料

作者:John Sall 提问时间:11/4/2023

这些是编辑和更新操作: def edit @store_to_edit = StorePost.find(params[:id]) end def update @store_to_e...

菜单在 Rails 7 和 Turbo 中“闪烁”

作者:almo 提问时间:11/4/2023

我正在尝试使用 Rails 7、Bootstrap 5 和 Jquery 构建一个非常简单的菜单,其中包含子菜单。 HTML格式: <div> <button class="toggle-su...


共351条 当前第30页