개정판 d85fc490
issue #000 DocumentItem, Properties 수정.
Change-Id: I9e9f8bbd89f29b513c76c1936da5c2efc65d3d26
ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBasePropertiesPG.cs | ||
---|---|---|
6 | 6 |
{ |
7 | 7 |
public class DataBasePropertiesPG : TestBasePG |
8 | 8 |
{ |
9 |
//[Test, Description("")]
|
|
10 |
public void DocPageInsert()
|
|
9 |
[Test, Description("GetPropertyItem")]
|
|
10 |
public void GetPropertyItem()
|
|
11 | 11 |
{ |
12 |
using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype))
|
|
12 |
using (Markus.Service.DataBase.Repositories.PROPERTIESRepository repository = new Repositories.PROPERTIESRepository(ConnectionStr, dbtype))
|
|
13 | 13 |
{ |
14 |
List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>(); |
|
15 |
|
|
16 |
for (int i = 0; i < 150000; i++) |
|
14 |
var result = repository.GetFirstAsync("000000", "TileSorceStorage").GetAwaiter().GetResult(); |
|
15 |
if (result != null) |
|
17 | 16 |
{ |
18 |
pages.Add(new Entities.DOCPAGE { DOCINFO_ID = "a764548c-9f44-4c4d-4597-f7ac43d2b7c1", PAGE_NUMBER = i+1, PAGE_WIDTH = "1210", PAGE_HEIGHT = "1210", PAGE_ANGLE = 0 }); |
|
17 |
Console.WriteLine($"new id : {result.ID}"); |
|
18 |
Assert.Pass(result.ID.ToString()); |
|
19 |
} |
|
20 |
else |
|
21 |
{ |
|
22 |
Console.WriteLine($"new id : null"); |
|
23 |
Assert.Fail(); |
|
19 | 24 |
} |
20 |
|
|
21 |
var result = repository.CreateAsync(pages).GetAwaiter().GetResult(); |
|
22 |
|
|
23 |
Console.WriteLine($"new id : {result}"); |
|
24 | 25 |
} |
25 | 26 |
} |
26 | 27 |
} |
내보내기 Unified diff