Skip to content

Commit

Permalink
修复MySQL字符串异常的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
u-less committed Jul 19, 2022
1 parent 6f77180 commit c39418d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 3 additions & 4 deletions src/Storage/Vertex.Storage.Linq2db/Entities/EventEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ namespace Vertex.Storage.Linq2db.Entities
[Table]
public class EventEntity<TPrimaryKey>
{
[Column]
[Column(DataType = DataType.VarChar, Length = 200)]
[Column(Length = 200, CanBeNull = false)]
public TPrimaryKey ActorId { get; set; }

[Column(DataType = DataType.VarChar, Length = 200)]
[Column(DataType = DataType.VarChar, CanBeNull = false, Length = 200)]
public string Name { get; set; }

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

[Column(DataType = DataType.VarChar, Length = 200)]
[Column(DataType = DataType.VarChar, CanBeNull = false, Length = 200)]
public string FlowId { get; set; }

[Column]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ namespace Vertex.Storage.Linq2db.Entities
public class SnapshotEntity<TPrimaryKey>
{
[PrimaryKey]
[Column]
[Column(DataType = DataType.VarChar, Length = 200)]
[Column(Length = 200, CanBeNull = false)]
public TPrimaryKey Id { get; set; }

[Column(DataType = DataType.Text)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using LinqToDB;
using LinqToDB.Mapping;
using LinqToDB.Mapping;

namespace Vertex.Storage.Linq2db.Entities
{
[Table]
public class SubSnapshotEntity<TPrimaryKey>
{
[PrimaryKey]
[Column]
[Column(DataType = DataType.VarChar, Length = 200)]
[Column(Length = 200, CanBeNull = false)]
public TPrimaryKey Id { get; set; }

[Column]
Expand Down

0 comments on commit c39418d

Please sign in to comment.