Skip to content

Commit c39418d

Browse files
committed
修复MySQL字符串异常的bug
1 parent 6f77180 commit c39418d

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/Storage/Vertex.Storage.Linq2db/Entities/EventEntity.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ namespace Vertex.Storage.Linq2db.Entities
66
[Table]
77
public class EventEntity<TPrimaryKey>
88
{
9-
[Column]
10-
[Column(DataType = DataType.VarChar, Length = 200)]
9+
[Column(Length = 200, CanBeNull = false)]
1110
public TPrimaryKey ActorId { get; set; }
1211

13-
[Column(DataType = DataType.VarChar, Length = 200)]
12+
[Column(DataType = DataType.VarChar, CanBeNull = false, Length = 200)]
1413
public string Name { get; set; }
1514

1615
[Column(DataType = DataType.Text)]
1716
public string Data { get; set; }
1817

19-
[Column(DataType = DataType.VarChar, Length = 200)]
18+
[Column(DataType = DataType.VarChar, CanBeNull = false, Length = 200)]
2019
public string FlowId { get; set; }
2120

2221
[Column]

src/Storage/Vertex.Storage.Linq2db/Entities/SnapshotEntity.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ namespace Vertex.Storage.Linq2db.Entities
77
public class SnapshotEntity<TPrimaryKey>
88
{
99
[PrimaryKey]
10-
[Column]
11-
[Column(DataType = DataType.VarChar, Length = 200)]
10+
[Column(Length = 200, CanBeNull = false)]
1211
public TPrimaryKey Id { get; set; }
1312

1413
[Column(DataType = DataType.Text)]

src/Storage/Vertex.Storage.Linq2db/Entities/SubSnapshotEntity.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
using LinqToDB;
2-
using LinqToDB.Mapping;
1+
using LinqToDB.Mapping;
32

43
namespace Vertex.Storage.Linq2db.Entities
54
{
65
[Table]
76
public class SubSnapshotEntity<TPrimaryKey>
87
{
98
[PrimaryKey]
10-
[Column]
11-
[Column(DataType = DataType.VarChar, Length = 200)]
9+
[Column(Length = 200, CanBeNull = false)]
1210
public TPrimaryKey Id { get; set; }
1311

1412
[Column]

0 commit comments

Comments
 (0)