Esempio n. 1
0
        public void InsertScript(SavedScript script)
        {
            var table  = GetTable();
            var entity = new DynamicTableEntity();

            entity.ETag         = "*";
            entity.PartitionKey = "1";
            entity.RowKey       = script.Id.ToString();
            entity.Properties.Add("Script", new EntityProperty(Serialize(script)));
            table.Execute(TableOperation.Insert(entity));
        }
Esempio n. 2
0
 private string Serialize(SavedScript script)
 {
     return(JsonConvert.SerializeObject(script));
 }