mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 修复 decimal? 可空数字设置 Column Scale 无效的问题(decimal正常);
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user