- 修复 decimal? 可空数字设置 Column Scale 无效的问题(decimal正常);

This commit is contained in:
28810
2020-10-14 17:55:49 +08:00
parent 7153cdf9f6
commit 38d8a3756c
4 changed files with 221 additions and 173 deletions

View File

@ -156,18 +156,21 @@ namespace FreeSql.Tests
}
}
class testInsertNullable
{
[Column(IsNullable = false, IsIdentity = true)]
public long Id { get; set; }
class testInsertNullable
{
[Column(IsNullable = false, IsIdentity = true)]
public long Id { get; set; }
[Column(IsNullable = false)]
public string str1 { get; set; }
[Column(IsNullable = false)]
public int? int1 { get; set; }
[Column(IsNullable = true)]
public int int2 { get; set; }
}
[Column(IsNullable = false)]
public string str1 { get; set; }
[Column(IsNullable = false)]
public int? int1 { get; set; }
[Column(IsNullable = true)]
public int int2 { get; set; }
[Column(Precision = 10, Scale = 5)]
public decimal? price { get; set; }
}
class testUpdateNonePk
{