mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-07-04 19:18:15 +08:00
- 增加 FreeSql.Provider.Oracle 下的 OraclePrimaryKeyName 特性,手工设置主键名防止默认名过长问题;
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace FreeSql.DataAnnotations
|
||||
{
|
||||
public class OraclePrimaryKeyNameAttribute : Attribute
|
||||
{
|
||||
public OraclePrimaryKeyNameAttribute(string name)
|
||||
{
|
||||
this.Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主键名
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user