发布记录 Status 改为 EsSnapshotStatus(TINYINT),计费启用判断改用 EnableStatus;db.sql 与 migrate_enum_int_comments.sql 补全枚举字段注释及旧库迁移。
11 lines
289 B
C#
11 lines
289 B
C#
using Oms.Domain.Shared.Enums;
|
|
|
|
namespace Oms.Domain.Shared;
|
|
|
|
public static class EnableStatusRules
|
|
{
|
|
public static bool IsEnabled(EnableStatus status) => status == EnableStatus.Enabled;
|
|
|
|
public static bool IsEnabled(byte status) => (EnableStatus)status == EnableStatus.Enabled;
|
|
}
|