Skip to content

Commit cbcff30

Browse files
committed
hydra-17: fix export errors
1 parent e8bddfe commit cbcff30

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Algo.Export/DatabaseExporter.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ private void CreateCandleTable(FluentMappingBuilder builder)
195195
.Entity<CandleMessage>()
196196
.Property(m => m.SecurityId.SecurityCode).HasLength(256)
197197
.Property(m => m.SecurityId.BoardCode).HasLength(256)
198+
.Property(m => m.SecurityId).IsNotColumn()
198199
.Property(m => m.Type).HasLength(32)
199200
.Property(m => m.Arg).HasLength(100)
200201
.Property(m => m.OpenTime)
@@ -224,6 +225,7 @@ private void CreateIndicatorValueTable(FluentMappingBuilder builder)
224225
.Entity<IndicatorValue>()
225226
.Property(m => m.SecurityId.SecurityCode).HasLength(256)
226227
.Property(m => m.SecurityId.BoardCode).HasLength(256)
228+
.Property(m => m.SecurityId).IsNotColumn()
227229
.Property(m => m.Time)
228230
//.Property(m => m.OpenPrice).HasScale(priceScale)
229231
//.Property(m => m.HighPrice).HasScale(priceScale)
@@ -326,6 +328,7 @@ private void CreateSecurityTable(FluentMappingBuilder builder)
326328
.Entity<SecurityMessage>()
327329
.Property(m => m.SecurityId.SecurityCode).HasLength(256)
328330
.Property(m => m.SecurityId.BoardCode).HasLength(256)
331+
.Property(m => m.SecurityId).IsNotColumn()
329332
.Property(m => m.Name).HasLength(256)
330333
.Property(m => m.ShortName).HasLength(64)
331334
.Property(m => m.PriceStep)
@@ -373,6 +376,7 @@ private void CreateNewsTable(FluentMappingBuilder builder)
373376
.Property(m => m.LocalTime)
374377
.Property(m => m.SecurityId.Value.SecurityCode).HasLength(256)
375378
.Property(m => m.SecurityId.Value.BoardCode).HasLength(256)
379+
.Property(m => m.SecurityId).IsNotColumn()
376380
.Property(m => m.Headline).HasLength(256)
377381
.Property(m => m.Story)
378382
.Property(m => m.Source).HasLength(256)
@@ -457,6 +461,7 @@ private void CreateMarketDepthQuoteTable(FluentMappingBuilder builder)
457461
.Entity<TimeQuoteChange>()
458462
.Property(m => m.SecurityId.SecurityCode).HasLength(256)
459463
.Property(m => m.SecurityId.BoardCode).HasLength(256)
464+
.Property(m => m.SecurityId).IsNotColumn()
460465
.Property(m => m.ServerTime)
461466
.Property(m => m.LocalTime)
462467
.Property(m => m.Quote.Price).HasScale(priceScale)
@@ -479,6 +484,7 @@ private void CreateExecutionTable(FluentMappingBuilder builder)
479484
.Entity<ExecutionMessage>()
480485
.Property(m => m.SecurityId.SecurityCode).HasLength(256)
481486
.Property(m => m.SecurityId.BoardCode).HasLength(256)
487+
.Property(m => m.SecurityId).IsNotColumn()
482488
.Property(m => m.ServerTime)
483489
.Property(m => m.LocalTime)
484490

@@ -518,7 +524,7 @@ private void CreateExecutionTable(FluentMappingBuilder builder)
518524

519525
.Property(m => m.Comment).HasLength(1024)
520526
.Property(m => m.SystemComment).HasLength(1024)
521-
.Property(m => m.Error).HasLength(1024)
527+
.Property(m => m.Error).HasDataType(LinqToDB.DataType.NVarChar).HasLength(1024)
522528

523529
.Property(m => m.Commission)
524530
.Property(m => m.CommissionCurrency).HasLength(32)
@@ -546,4 +552,4 @@ private void CreateExecutionTable(FluentMappingBuilder builder)
546552
;
547553
}
548554
}
549-
}
555+
}

0 commit comments

Comments
 (0)