使用新框架与技术代替旧框架与技术,实现涂装车间后道标签扫码程序
This commit is contained in:
28
RIZO_Application.Models/Class1.cs
Normal file
28
RIZO_Application.Models/Class1.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
|
||||
namespace RIZO_Application.Models
|
||||
{
|
||||
// Core/Entities/User.cs
|
||||
[SugarTable("Users")]
|
||||
public class User
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[SugarColumn(Length = 100)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[SugarColumn(Length = 100, IsNullable = false)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateTime? LastLoginDate { get; set; }
|
||||
|
||||
[SugarColumn]
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string DisplayName => $"{Name} ({Email})";
|
||||
}
|
||||
}
|
||||
13
RIZO_Application.Models/Model/PrintDto.cs
Normal file
13
RIZO_Application.Models/Model/PrintDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace RIZO_Application.Models.Model
|
||||
{
|
||||
public class PrintDto
|
||||
{
|
||||
public string Path { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
12
RIZO_Application.Models/RIZO_Application.Models.csproj
Normal file
12
RIZO_Application.Models/RIZO_Application.Models.csproj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\RIZO_Application\RIZO_Application.Infrastructure\RIZO_Application.Infrastructure.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user