namespace BlazorAppDemo.Services { ///
/// </summary>
public class DataService
{
/// <summary>
/// 产品数据
/// </summary>
private readonly List<Product> Products = new()
{
// 模拟产品数据
new() { Id = 1, Name = "DotNet技术匠01", CreateTime = DateTime.Now },
new() { Id = 2, Name = "DotNet技术匠02", CreateTime = DateTime.Now },
new() { Id = 3, Name = "DotNet技术匠03", CreateTime = DateTime.Now },
new() { Id = 4, Name = "DotNet技术匠04", CreateTime = DateTime.Now },
new() { Id = 5, Name = "DotNet技术匠05", CreateTime = DateTime.Now }
};
///
/// 产品实体
/// </summary>
public class Product
namespace BlazorAppDemo.Services
{ ///
public class Product
{
/// https://www.laipuhuo.com <summary>
/// 产品ID
/// </summary>
public int Id { get; set; }
///
{
/// <summary>
/// 产品ID
/// </summary>
public int Id { get; set; }
///
/// </summary>
public string https://www.laipuhuo.com Name { get; set; }
///