正则表达式匹配和替换

 字符串替换

            var input1 = "one two";
            input1 = new Regex(@"(w+)(s)(w+)").Replace(input1,"$3$2$1");

输出结果:

"two one"

替换代码:

       /// <summary>
        /// 将共享实体下载的数据中的所有Id替换成新的GUID信息(不改变sharingOriginalInfo中的Id信息)
        /// </summary>
        /// <param name="shareEntData"></param>
        /// <returns></returns>
        private static string ParseShareEntData(string shareEntData)
        {
            shareEntData = new Regex("("modelId"\s*:\s*"[\w-]+)").Replace(shareEntData, "$1<@s@>");
            shareEntData = new Regex("("originalId"\s*:\s*"[\w-]+)").Replace(shareEntData, "$1<@s@>");
            shareEntData = new Regex("("modelDirectoryId"\s*:\s*"[\w-]+)").Replace(shareEntData, "$1<@s@>");
            var idDic = new Dictionary<string, string>();
            foreach (Match match in new Regex("(\w{8}-\w{4}-\w{4}-\w{4}-\w{12}")").Matches(shareEntData))
            {
                var id = match.Groups[0].ToString();
                if (!idDic.ContainsKey(id))
                {
                    idDic[id] = Guid.NewGuid().ToString() + """;
                }
            }
            foreach (var kvp in idDic)
            {
                shareEntData = shareEntData.Replace(kvp.Key, kvp.Value);
            }
            return shareEntData.Replace("<@s@>", "");
        }

  数据:

[
  {
    "keygroups": [
      {
        "isPhysical": true,
        "udps": [],
        "isLogical": true,
        "isUnique": true,
        "creatorName": "",
        "logicalName": "Primary Key",
        "description": "",
        "pid": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "4b208a33-12f3-4e0f-85e8-2655d4cf99de",
          "modelDirectoryId": "ROOT"
        },
        "type": 27,
        "keygroupItems": [],
        "markerType": 0,
        "createdDate": "2020-08-26T17:13:41+08:00",
        "physicalName": "表_1_PK",
        "keygroupType": "PrimaryKey",
        "modifiedDate": "2020-08-26T17:13:41+08:00",
        "name": "Primary Key",
        "comment": "",
        "definition": "",
        "modifierName": "",
        "id": "4b208a33-12f3-4e0f-85e8-2655d4cf99de"
      }
    ],
    "entities": [
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": false,
        "termId": "",
        "physicalName": "表_1",
        "definition": "",
        "id": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
        "isPhysical": true,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 409.14333333333337,
              "baseDataId": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
              "refVisualId": "",
              "pid": "",
              "right": 244.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 38.960000000000008,
              "left": 59.000000000000057,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isTable": false,
              "actualScale": 1
            }
          ],
          "P_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 194.56000000000003,
              "baseDataId": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
              "refVisualId": "",
              "pid": "",
              "right": 286.60000000000008,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 38.960000000000008,
              "left": 59.000000000000057,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "P_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isTable": true,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 0,
        "isLogical": true,
        "logicalName": "实体_1",
        "markerType": 2,
        "isStandard": false,
        "createdDate": "2020-08-26T17:13:40+08:00",
        "modifiedDate": "2020-08-26T17:13:40+08:00",
        "name": "实体_1",
        "comment": "",
        "modifierName": ""
      },
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "d74c3b9a-7a10-4650-82c3-037aa4e42649",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "c6efef6f-0900-4e7f-a572-bb3e530bdf82",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": true,
        "termId": "",
        "physicalName": "女3",
        "definition": "",
        "id": "c6efef6f-0900-4e7f-a572-bb3e530bdf82",
        "isPhysical": false,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 9,
              "bottom": 354.14333333333337,
              "baseDataId": "c6efef6f-0900-4e7f-a572-bb3e530bdf82",
              "refVisualId": "",
              "pid": "L_6da6fcfb-b7ad-476a-8132-1b2b80d2fbe7",
              "right": 184.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 324.14333333333337,
              "left": 134.00000000000006,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_a50ad8b0-bae5-4281-a90e-994db618b455",
              "isTable": false,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 6,
        "isLogical": true,
        "logicalName": "女3",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:51+08:00",
        "modifiedDate": "2020-08-26T17:15:51+08:00",
        "name": "女3",
        "comment": "",
        "modifierName": ""
      },
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "d74c3b9a-7a10-4650-82c3-037aa4e42649",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "64f0bf42-d60a-474b-9163-0cb6d5d23fe3",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": true,
        "termId": "",
        "physicalName": "男3",
        "definition": "",
        "id": "64f0bf42-d60a-474b-9163-0cb6d5d23fe3",
        "isPhysical": false,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 8,
              "bottom": 314.14333333333337,
              "baseDataId": "64f0bf42-d60a-474b-9163-0cb6d5d23fe3",
              "refVisualId": "",
              "pid": "L_6da6fcfb-b7ad-476a-8132-1b2b80d2fbe7",
              "right": 184.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 284.14333333333337,
              "left": 134.00000000000006,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_b1b0d0f0-e368-4975-8239-9caa200aa2c2",
              "isTable": false,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 6,
        "isLogical": true,
        "logicalName": "男3",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:51+08:00",
        "modifiedDate": "2020-08-26T17:15:51+08:00",
        "name": "男3",
        "comment": "",
        "modifierName": ""
      },
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "904c226b-426a-4546-8a0a-701dd5a13c98",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "70e8ae45-7f3d-4231-9679-fb1e81aabde5",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": true,
        "termId": "",
        "physicalName": "女2",
        "definition": "",
        "id": "70e8ae45-7f3d-4231-9679-fb1e81aabde5",
        "isPhysical": false,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 6,
              "bottom": 205.47000000000003,
              "baseDataId": "70e8ae45-7f3d-4231-9679-fb1e81aabde5",
              "refVisualId": "",
              "pid": "L_3c4e7931-0957-4841-b207-6a9d080cb01c",
              "right": 159.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 175.47000000000003,
              "left": 109.00000000000006,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_ea7de0b9-523a-446b-936f-195e5bcf1ddb",
              "isTable": false,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 4,
        "isLogical": true,
        "logicalName": "女2",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:14+08:00",
        "modifiedDate": "2020-08-26T17:15:14+08:00",
        "name": "女2",
        "comment": "",
        "modifierName": ""
      },
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "20b80398-64ad-4735-a054-79ddfe66ff8b",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "356d3ad0-206e-4746-8210-4bc0edd9f188",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": true,
        "termId": "",
        "physicalName": "男1",
        "definition": "",
        "id": "356d3ad0-206e-4746-8210-4bc0edd9f188",
        "isPhysical": false,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 2,
              "bottom": 389.14333333333337,
              "baseDataId": "356d3ad0-206e-4746-8210-4bc0edd9f188",
              "refVisualId": "",
              "pid": "L_4fe57e77-8d41-4537-a09a-1f206cb5e593",
              "right": 224.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 86.796666666666681,
              "left": 84.000000000000057,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_37026f4e-ae45-4bdd-83fd-ff70137173d1",
              "isTable": false,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 2,
        "isLogical": true,
        "logicalName": "男1",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:14:20+08:00",
        "modifiedDate": "2020-08-26T17:14:20+08:00",
        "name": "男1",
        "comment": "",
        "modifierName": ""
      },
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "20b80398-64ad-4735-a054-79ddfe66ff8b",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "bdd226dd-acd4-40e6-aef2-13fc501c0e7e",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": true,
        "termId": "",
        "physicalName": "女1",
        "definition": "",
        "id": "bdd226dd-acd4-40e6-aef2-13fc501c0e7e",
        "isPhysical": false,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 3,
              "bottom": 176.79666666666668,
              "baseDataId": "bdd226dd-acd4-40e6-aef2-13fc501c0e7e",
              "refVisualId": "",
              "pid": "L_4fe57e77-8d41-4537-a09a-1f206cb5e593",
              "right": 134.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 146.79666666666668,
              "left": 84.000000000000057,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_88c0e8a6-8e14-4a9e-9871-8d5d13688b17",
              "isTable": false,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 2,
        "isLogical": true,
        "logicalName": "女1",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:14:20+08:00",
        "modifiedDate": "2020-08-26T17:14:20+08:00",
        "name": "女1",
        "comment": "",
        "modifierName": ""
      },
      {
        "isUse": false,
        "creatorName": "",
        "description": "",
        "pid": "904c226b-426a-4546-8a0a-701dd5a13c98",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "424c5aa2-a72f-4e1a-bd54-0f3351ebd70b",
          "modelDirectoryId": "ROOT"
        },
        "type": 7,
        "isSubtype": true,
        "termId": "",
        "physicalName": "男2",
        "definition": "",
        "id": "424c5aa2-a72f-4e1a-bd54-0f3351ebd70b",
        "isPhysical": false,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 5,
              "bottom": 364.14333333333337,
              "baseDataId": "424c5aa2-a72f-4e1a-bd54-0f3351ebd70b",
              "refVisualId": "",
              "pid": "L_3c4e7931-0957-4841-b207-6a9d080cb01c",
              "right": 204.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "isDuplication": false,
              "top": 195.47000000000003,
              "left": 109.00000000000006,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Bold",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_65469e08-c57e-424c-afc5-44246d0e503d",
              "isTable": false,
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "level": 4,
        "isLogical": true,
        "logicalName": "男2",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:14+08:00",
        "modifiedDate": "2020-08-26T17:15:14+08:00",
        "name": "男2",
        "comment": "",
        "modifierName": ""
      },
      {
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 1,
              "bottom": 399.14333333333337,
              "baseDataId": "20b80398-64ad-4735-a054-79ddfe66ff8b",
              "pid": "L_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "right": 234.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 81.796666666666681,
              "left": 69.000000000000057,
              "background": "#FFDBFDA9 ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_4fe57e77-8d41-4537-a09a-1f206cb5e593",
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "level": 1,
        "creatorName": "",
        "description": "",
        "pid": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "20b80398-64ad-4735-a054-79ddfe66ff8b",
          "modelDirectoryId": "ROOT"
        },
        "type": 11,
        "markerType": 0,
        "attributeId": "c8678b1d-76fe-4c47-b0f9-4a48be15e4fe",
        "createdDate": "2020-08-26T17:14:20+08:00",
        "name": "性别1",
        "modifiedDate": "2020-08-26T17:14:20+08:00",
        "modifierName": "",
        "id": "20b80398-64ad-4735-a054-79ddfe66ff8b"
      },
      {
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 4,
              "bottom": 379.14333333333337,
              "baseDataId": "904c226b-426a-4546-8a0a-701dd5a13c98",
              "pid": "L_37026f4e-ae45-4bdd-83fd-ff70137173d1",
              "right": 214.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 150.47000000000003,
              "left": 94.000000000000057,
              "background": "#FFDBFDA9 ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_3c4e7931-0957-4841-b207-6a9d080cb01c",
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "level": 3,
        "creatorName": "",
        "description": "",
        "pid": "356d3ad0-206e-4746-8210-4bc0edd9f188",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "904c226b-426a-4546-8a0a-701dd5a13c98",
          "modelDirectoryId": "ROOT"
        },
        "type": 11,
        "markerType": 0,
        "attributeId": "3b9415fc-066f-45df-905b-a756c96116f9",
        "createdDate": "2020-08-26T17:15:14+08:00",
        "name": "性别2",
        "modifiedDate": "2020-08-26T17:15:14+08:00",
        "modifierName": "",
        "id": "904c226b-426a-4546-8a0a-701dd5a13c98"
      },
      {
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 7,
              "bottom": 359.14333333333337,
              "baseDataId": "d74c3b9a-7a10-4650-82c3-037aa4e42649",
              "pid": "L_65469e08-c57e-424c-afc5-44246d0e503d",
              "right": 194.00000000000006,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 259.14333333333337,
              "left": 119.00000000000006,
              "background": "#FFDBFDA9 ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_6da6fcfb-b7ad-476a-8132-1b2b80d2fbe7",
              "actualScale": 1
            }
          ]
        },
        "udps": [],
        "level": 5,
        "creatorName": "",
        "description": "",
        "pid": "424c5aa2-a72f-4e1a-bd54-0f3351ebd70b",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "d74c3b9a-7a10-4650-82c3-037aa4e42649",
          "modelDirectoryId": "ROOT"
        },
        "type": 11,
        "markerType": 0,
        "attributeId": "c4759979-2c05-4db2-95b0-581d5b55e70f",
        "createdDate": "2020-08-26T17:15:51+08:00",
        "name": "性别3",
        "modifiedDate": "2020-08-26T17:15:51+08:00",
        "modifierName": "",
        "id": "d74c3b9a-7a10-4650-82c3-037aa4e42649"
      }
    ],
    "attributes": [
      {
        "defaultValue": "",
        "precision": "",
        "creatorName": "",
        "description": "",
        "pid": "99c6ac4b-e4b7-41b4-ad1d-2eaa07b05299",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "c8678b1d-76fe-4c47-b0f9-4a48be15e4fe",
          "modelDirectoryId": "ROOT"
        },
        "type": 10,
        "termId": "",
        "physicalName": "SEX1",
        "isPrimary": false,
        "isERSubset": true,
        "physicalDataType": null,
        "definition": "",
        "id": "c8678b1d-76fe-4c47-b0f9-4a48be15e4fe",
        "logicalDataType": "",
        "isFK": false,
        "logicalOrder": 1,
        "isPhysical": true,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "c8678b1d-76fe-4c47-b0f9-4a48be15e4fe",
              "pid": "L_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isColumn": false,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_881a7e65-c28c-40c5-b86b-6eefef126a4c",
              "actualScale": 0
            }
          ],
          "P_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "c8678b1d-76fe-4c47-b0f9-4a48be15e4fe",
              "pid": "P_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isColumn": true,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "P_881a7e65-c28c-40c5-b86b-6eefef126a4c",
              "actualScale": 0
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "notNull": false,
        "level": 0,
        "dataLength": "",
        "isLogical": true,
        "physicalOrder": 1,
        "logicalName": "性别1",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:14:04+08:00",
        "modifiedDate": "2020-08-26T17:14:04+08:00",
        "name": "性别1",
        "comment": "",
        "modifierName": ""
      },
      {
        "defaultValue": "",
        "precision": "",
        "creatorName": "",
        "description": "",
        "pid": "356d3ad0-206e-4746-8210-4bc0edd9f188",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "0f13f4a1-e810-4e3f-b3fb-96bb46f82f57",
          "modelDirectoryId": "ROOT"
        },
        "type": 10,
        "termId": "",
        "physicalName": "COL2",
        "isPrimary": false,
        "isERSubset": false,
        "physicalDataType": null,
        "definition": "",
        "id": "0f13f4a1-e810-4e3f-b3fb-96bb46f82f57",
        "logicalDataType": "",
        "isFK": false,
        "logicalOrder": 1,
        "isPhysical": true,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "0f13f4a1-e810-4e3f-b3fb-96bb46f82f57",
              "pid": "L_37026f4e-ae45-4bdd-83fd-ff70137173d1",
              "isColumn": false,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_a638aa61-28fc-41a9-a242-2402ea8fa893",
              "actualScale": 0
            }
          ],
          "P_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "0f13f4a1-e810-4e3f-b3fb-96bb46f82f57",
              "pid": "P_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isColumn": true,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "P_a638aa61-28fc-41a9-a242-2402ea8fa893",
              "actualScale": 0
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "notNull": false,
        "level": 0,
        "dataLength": "",
        "isLogical": true,
        "physicalOrder": 1,
        "logicalName": "普通属性2",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:07+08:00",
        "modifiedDate": "2020-08-26T17:15:07+08:00",
        "name": "普通属性2",
        "comment": "",
        "modifierName": ""
      },
      {
        "defaultValue": "",
        "precision": "",
        "creatorName": "",
        "description": "",
        "pid": "356d3ad0-206e-4746-8210-4bc0edd9f188",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "3b9415fc-066f-45df-905b-a756c96116f9",
          "modelDirectoryId": "ROOT"
        },
        "type": 10,
        "termId": "",
        "physicalName": "SEX2",
        "isPrimary": false,
        "isERSubset": true,
        "physicalDataType": null,
        "definition": "",
        "id": "3b9415fc-066f-45df-905b-a756c96116f9",
        "logicalDataType": "",
        "isFK": false,
        "logicalOrder": 2,
        "isPhysical": true,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "3b9415fc-066f-45df-905b-a756c96116f9",
              "pid": "L_37026f4e-ae45-4bdd-83fd-ff70137173d1",
              "isColumn": false,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_7080c6fd-3154-400f-8d6c-bbecf6b43980",
              "actualScale": 0
            }
          ],
          "P_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "3b9415fc-066f-45df-905b-a756c96116f9",
              "pid": "P_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isColumn": true,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "P_7080c6fd-3154-400f-8d6c-bbecf6b43980",
              "actualScale": 0
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "notNull": false,
        "level": 0,
        "dataLength": "",
        "isLogical": true,
        "physicalOrder": 2,
        "logicalName": "性别2",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:07+08:00",
        "modifiedDate": "2020-08-26T17:15:07+08:00",
        "name": "性别2",
        "comment": "",
        "modifierName": ""
      },
      {
        "defaultValue": "",
        "precision": "",
        "creatorName": "",
        "description": "",
        "pid": "424c5aa2-a72f-4e1a-bd54-0f3351ebd70b",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "c4759979-2c05-4db2-95b0-581d5b55e70f",
          "modelDirectoryId": "ROOT"
        },
        "type": 10,
        "termId": "",
        "physicalName": "SEX3",
        "isPrimary": false,
        "isERSubset": true,
        "physicalDataType": null,
        "definition": "",
        "id": "c4759979-2c05-4db2-95b0-581d5b55e70f",
        "logicalDataType": "",
        "isFK": false,
        "logicalOrder": 1,
        "isPhysical": true,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "c4759979-2c05-4db2-95b0-581d5b55e70f",
              "pid": "L_65469e08-c57e-424c-afc5-44246d0e503d",
              "isColumn": false,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_a226fdd9-0f51-4d0d-8a11-25aeefbdf8d1",
              "actualScale": 0
            }
          ],
          "P_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "c4759979-2c05-4db2-95b0-581d5b55e70f",
              "pid": "P_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isColumn": true,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "P_a226fdd9-0f51-4d0d-8a11-25aeefbdf8d1",
              "actualScale": 0
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "notNull": false,
        "level": 0,
        "dataLength": "",
        "isLogical": true,
        "physicalOrder": 1,
        "logicalName": "性别3",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:44+08:00",
        "modifiedDate": "2020-08-26T17:15:44+08:00",
        "name": "性别3",
        "comment": "",
        "modifierName": ""
      },
      {
        "defaultValue": "",
        "precision": "",
        "creatorName": "",
        "description": "",
        "pid": "424c5aa2-a72f-4e1a-bd54-0f3351ebd70b",
        "sharingOriginalInfo": {
          "modelId": "8b1be707-8f17-4365-b97b-a550ae9a250f",
          "originalId": "8c3205ff-ee2c-4cde-837e-d6b3b773425c",
          "modelDirectoryId": "ROOT"
        },
        "type": 10,
        "termId": "",
        "physicalName": "COL3",
        "isPrimary": false,
        "isERSubset": false,
        "physicalDataType": null,
        "definition": "",
        "id": "8c3205ff-ee2c-4cde-837e-d6b3b773425c",
        "logicalDataType": "",
        "isFK": false,
        "logicalOrder": 2,
        "isPhysical": true,
        "visuals": {
          "L_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "8c3205ff-ee2c-4cde-837e-d6b3b773425c",
              "pid": "L_65469e08-c57e-424c-afc5-44246d0e503d",
              "isColumn": false,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "L_15d4960f-d404-4252-872d-cdaf034bbff2",
              "actualScale": 0
            }
          ],
          "P_18325b5a-a7d1-40e7-a09f-185b06300d74": [
            {
              "z-index": 0,
              "bottom": 0,
              "baseDataId": "8c3205ff-ee2c-4cde-837e-d6b3b773425c",
              "pid": "P_4cee21c1-dd5c-4abc-a9c3-b9b041731c8c",
              "isColumn": true,
              "right": 0,
              "foreground": "#FFC0C0C0 ",
              "lineWidth": 2,
              "top": 0,
              "left": 0,
              "background": "#FFFFFFFF ",
              "fontContext": {
                "fontDecorationThickness": 1,
                "fontName": "Microsoft YaHei",
                "fontStretch": "Normal",
                "hasStrikethrough": false,
                "fontSize": 12,
                "fontStyle": "Normal",
                "fontColor": "#FF000000 ",
                "fontWeight": "Normal",
                "hasUnderline": false,
                "isShowed": false
              },
              "id": "P_15d4960f-d404-4252-872d-cdaf034bbff2",
              "actualScale": 0
            }
          ]
        },
        "udps": [],
        "standardTarget": 2,
        "notNull": false,
        "level": 0,
        "dataLength": "",
        "isLogical": true,
        "physicalOrder": 2,
        "logicalName": "普通属性3",
        "markerType": 0,
        "isStandard": false,
        "createdDate": "2020-08-26T17:15:44+08:00",
        "modifiedDate": "2020-08-26T17:15:44+08:00",
        "name": "普通属性3",
        "comment": "",
        "modifierName": ""
      }
    ]
  }
]

  

原文地址:https://www.cnblogs.com/runningRain/p/13610131.html