表格重构
This commit is contained in:
17
Assets/Scripts/Configs~/Cache/TableNameAttribute.cs
Normal file
17
Assets/Scripts/Configs~/Cache/TableNameAttribute.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class TableNameAttribute : Attribute
|
||||
{
|
||||
public string Name;
|
||||
public string Key;
|
||||
|
||||
public TableNameAttribute(string name, string key = "id")
|
||||
{
|
||||
Name = name;
|
||||
Key = key;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user