BUG:如果设置成下划线分割的表名,然导致在oracle中索引名称太长。所以这里要尽量短一点。
This commit is contained in:
parent
1af9fa56bc
commit
753c7a06e9
@ -1,4 +1,4 @@
|
||||
// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
|
||||
// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
|
||||
//
|
||||
// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
|
||||
//
|
||||
@ -21,7 +21,7 @@ public abstract class EntityBaseId
|
||||
/// <summary>
|
||||
/// 框架实体基类
|
||||
/// </summary>
|
||||
[SugarIndex("index_{table}_CT", nameof(CreateTime), OrderByType.Asc)]
|
||||
[SugarIndex("i_{table}_CT", nameof(CreateTime), OrderByType.Asc)]
|
||||
public abstract class EntityBase : EntityBaseId, IDeletedFilter
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@ -11,9 +11,9 @@ namespace Admin.NET.Core;
|
||||
/// </summary>
|
||||
[SugarTable(null, "支付宝交易记录表")]
|
||||
[SysTable]
|
||||
[SugarIndex("index_{table}_U", nameof(UserId), OrderByType.Asc)]
|
||||
[SugarIndex("index_{table}_T", nameof(TradeNo), OrderByType.Asc)]
|
||||
[SugarIndex("index_{table}_O", nameof(OutTradeNo), OrderByType.Asc)]
|
||||
[SugarIndex("i_sysalipaytransaction_u", nameof(UserId), OrderByType.Asc)]
|
||||
[SugarIndex("i_sysalipaytransaction_t", nameof(TradeNo), OrderByType.Asc)]
|
||||
[SugarIndex("i_sysalipaytransaction_o", nameof(OutTradeNo), OrderByType.Asc)]
|
||||
public class SysAlipayTransaction : EntityBase
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user