프로젝트

일반

사용자정보

개정판 d85fc490

IDd85fc49077499429821124d64eb90483b5b53cbb
상위 ddc223b4
하위 7864cac7

GeunHo Song 이(가) 약 2년 전에 추가함

issue #000 DocumentItem, Properties 수정.

Change-Id: I9e9f8bbd89f29b513c76c1936da5c2efc65d3d26

차이점 보기:

ConvertService/ServiceBase/Markus.Service.DataBase.Test/DataBaseDocumentitem.cs
6 6
{
7 7
    public class DataBaseDocumentitem : TestBaseMSSQL
8 8
    {
9
        //[Test, Description("")]
10
        public void DocPageInsert()
9
        [Test, Description("GetDocumentFirstAsync")]
10
        public void GetDocumentFirstAsync()
11 11
        {
12
            using (Markus.Service.DataBase.Repositories.DOCPAGERepository repository = new Repositories.DOCPAGERepository(ConnectionStr, dbtype))
12
            using (Markus.Service.DataBase.Repositories.DOCUMENTITEMRepository repository = new Repositories.DOCUMENTITEMRepository(ConnectionStr, dbtype))
13 13
            {
14
                List<Entities.DOCPAGE> pages = new List<Entities.DOCPAGE>();
14
                var result = repository.GetFirstAsync("000000", "4000005").GetAwaiter().GetResult();
15 15

  
16
                for (int i = 0; i < 150000; i++)
16
                Console.WriteLine($"new id : {result}");
17
            }
18
        }
19

  
20
        [Test, Description("CreateOrUPdateAsync")]
21
        public void CreateOrUPdateAsync()
22
        {
23
            using (Markus.Service.DataBase.Repositories.DOCUMENTITEMRepository repository = new Repositories.DOCUMENTITEMRepository(ConnectionStr, dbtype))
24
            {
25

  
26
                var documentItem = new Entities.DOCUMENTITEM()
17 27
                {
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 });
19
                }
28
                    ID = "CC561E3CD580447E9A9508C563D257DA",
29
                    REVISION = "A",
30
                    DOCUMENT_NO = "PROC_TEST_DOCUMENT_NO",
31
                    DOCUMENT_NAME = "PROC_TEST_DOCUMENT_NAME",
32
                    GROUP_NO = "PROC_GROUP_NO",
33
                    ORIGINAL_FILE = "PROC_TEST_ORIGINAL_FILE",
34
                    DOCUMENT_ID = "0000000001",
35
                    RESULT_FILE = "PROC_RESULT_FILE",
36
                    RESULT = "PROC_RESULT",
37
                    PROJECT_NO = "PROC_RESULT",
38
                    Link = "PROC_TEST_Link"
39
                };
40

  
20 41

  
21
                var result = repository.CreateAsync(pages).GetAwaiter().GetResult();
42
                var result = repository.CreateOrUPdateAsync(documentItem).GetAwaiter().GetResult();
22 43

  
23 44
                Console.WriteLine($"new id : {result}");
24 45
            }

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)