﻿//// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit)
//// Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus
//// Forum & Issues: https://github.com/zzzprojects/EntityFramework-Plus/issues
//// License: https://github.com/zzzprojects/EntityFramework-Plus/blob/master/LICENSE
//// More projects: http://www.zzzprojects.com/
//// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.

//#if FULL || BATCH_DELETE || BATCH_UPDATE
//#if EF5 || EF6
//using System.IO;
//using System.Xml.Serialization;

//namespace Z.EntityFramework.Plus
//{
//    internal static partial class InternalExtensions
//    {
//        /// <summary>
//        ///     A string extension method that deserialize XML.
//        /// </summary>
//        /// <typeparam name="T">Generic type parameter.</typeparam>
//        /// <param name="this">The @this to act on.</param>
//        /// <returns>A T.</returns>
//        internal static T DeserializeXml<T>(this string @this)
//        {
//            var x = new XmlSerializer(typeof (T));
//            var r = new StringReader(@this);

//            return (T) x.Deserialize(r);
//        }
//    }
//}

//#endif
//#endif