Browse Source

cosomosEntity ttl預設-1

JAELYS 4 years ago
parent
commit
8f961ff420
1 changed files with 1 additions and 1 deletions
  1. 1 1
      TEAMModelOS.SDK/Models/Cosmos/CosmosEntity.cs

+ 1 - 1
TEAMModelOS.SDK/Models/Cosmos/CosmosEntity.cs

@@ -12,6 +12,6 @@ namespace TEAMModelOS.SDK.Models
         [PartitionKey]
         [PartitionKey]
         public string code { get; set; }
         public string code { get; set; }
         public string pk { get; set; }
         public string pk { get; set; }
-        public int? ttl { get; set; }
+        public int? ttl { get; set; } = -1;
     }
     }
 }
 }