- 增加 FreeSql.Provider.Oracle 下的 OraclePrimaryKeyName 特性,手工设置主键名防止默认名过长问题;

This commit is contained in:
28810
2019-08-01 18:29:54 +08:00
parent b6ca81bfb9
commit 430618dcb7
2 changed files with 23 additions and 2 deletions

View File

@ -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; }
}
}