- 调整 pgsql10 自增映射使用 GENERATED BY DEFAULT AS IDENTITY,低版本仍然使用 serial;

This commit is contained in:
2881099
2022-06-01 22:18:44 +08:00
parent df95b8c490
commit 617cfb8744
4 changed files with 145 additions and 42 deletions

View File

@ -221,7 +221,7 @@ namespace FreeSql.Tests.PostgreSQL
var id = g.pgsql.Insert<TopicAddField>().AppendData(new TopicAddField { }).ExecuteIdentity();
}
[Table(Name = "ccc.TopicAddField", OldName = "TopicAddField")]
[Table(Name = "ccc2.TopicAddField", OldName = "ccc.TopicAddField")]
public class TopicAddField
{
[Column(IsIdentity = true)]
@ -235,8 +235,8 @@ namespace FreeSql.Tests.PostgreSQL
//[Column(DbType = "varchar(200) not null", OldName = "title")]
//public string title222 { get; set; } = "333";
//[Column(DbType = "varchar(200) not null")]
//public string title222333 { get; set; } = "xxx";
[Column(DbType = "varchar(200) not null")]
public string title222333 { get; set; } = "xxx";
//[Column(DbType = "varchar(100) not null", OldName = "title122333aaa")]
//public string titleaaa { get; set; } = "fsdf";