/// <summary>
        /// Deletes or partially updates the specified object by uid.
        /// </summary>
        /// <param name="parser">The query parser that specifies the object.</param>
        public override void Delete(WitsmlQueryParser parser)
        {
            var uri = parser.GetUri <T>();

            if (parser.HasElements())
            {
                // TODO: PartialDeleteEntity(parser, uri);
                //ValidateUpdatedEntity(Functions.DeleteFromStore, uri);
                throw new NotImplementedException();
            }
            else
            {
                Delete(uri);
            }
        }
示例#2
0
        /// <summary>
        /// Deletes or partially updates the specified object by uid.
        /// </summary>
        /// <param name="parser">The query parser that specifies the object.</param>
        public override void Delete(WitsmlQueryParser parser)
        {
            var uri = parser.GetUri <T>();

            if (parser.HasElements())
            {
                using (var transaction = GetTransaction())
                {
                    transaction.SetContext(uri);
                    PartialDeleteEntity(parser, uri);
                    transaction.Commit();
                }
            }
            else
            {
                Delete(uri);
            }
        }