Ejemplo n.º 1
0
        public void runUpdates()
        {
            UpdateOne updOne = new UpdateOne(this);

            updOne.runOne();
            updOne.runTwo();

            updateLastUpdate();
            updateDBVersion();
            fixPermissions();
        }
Ejemplo n.º 2
0
        public static DataContracts.UpdateResult UpdateOne <T>(string collectionName, FilterDefinition <T> filter, UpdateDefinition <T> update, UpdateOptions updateOptions = null, string schemaId = "", Notification notification = null)
        {
            var request = new UpdateOne
            {
                CollectionName = collectionName,
                OutputMode     = JsonOutputMode.Strict,
                Filter         = filter.ToJson(),
                Notification   = notification,
                Update         = update.ToJson(),
                UpdateOptions  = updateOptions,
                SchemaId       = schemaId
            };

            var response = Send <UpdateOneResponse>("entities/" + collectionName, request, "PUT");

            return(response.Result);
        }