Blazor显示数据库中的数据

我创建了一个Blazor页面,该页面仅显示数据库中的一些数据。

我的标记如下:

module type List_combinator =
sig
  type t
  (....)
end

module List_atom(A: I) :
sig
  type t = A.t
  include List_combinator with type t := t
end

module List_cons(A: I)(B: List_combinator) :
sig
  type t = (A.t * B.t)
  include List_combinator with type t := t
end

我的代码如下:

@inject MyDataService service;

if(!MyData.Count() > 0) { <div>no data</div>}

else { //display data }

这项工作有效,但问题是:

我看到显示了MyData-然后它很快翻转为“无数据”-然后我又看到了呈现的MyData

我在做什么错了?

wfeng_bit 回答:Blazor显示数据库中的数据

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3135651.html

大家都在问