Example #1
0
        protected override object DoOperation(SchemaObjectOperationContext context)
        {
            using (TransactionScope scope = TransactionScopeFactory.Create())
            {
                if (_Image == null || _Image.IsEmpty())
                {
                    _Object.Properties[this._PropertyName].StringValue = "";
                }
                else
                {
                    ImagePropertyAdapter.Instance.UpdateWithContent(this._Image);
                    _Object.Properties[this._PropertyName].StringValue = JSONSerializerExecute.Serialize(this._Image);
                }

                SchemaObjectAdapter.Instance.Update(this._Object);
                scope.Complete();
            }

            return(this._Object);
        }