- 优化 Firebird CodeFirst 迁移代码;

This commit is contained in:
2881099
2023-02-07 19:09:32 +08:00
parent 19d37a1347
commit b5c62ebb7c
3 changed files with 250 additions and 233 deletions

View File

@ -10,6 +10,29 @@ namespace FreeSql.Tests.Firebird
{
public class FirebirdCodeFirstTest
{
[Fact]
public void Issues1413()
{
var fsql = g.firebird;
fsql.Select<MCliFile>().Count();
}
[Table(Name = "Issues1413_client_file")]
[Index("idx_Issues1413_client_file", "cfiState, cfiBranch desc")]
public class MCliFile
{
[Column(IsPrimary = true, StringLength = 16, Position = 1)]
public string cfiNo { get; set; }
public short cfiState { get; set; }
[Column(StringLength = 6, CanUpdate = false, IsNullable = false)]
public string cfiBranch { get; set; }
[Column(CanUpdate = false, IsNullable = false)]
public string cfiName { get; set; }
}
[Fact]
public void Test_0String()
{