public static IQueryable<Tracker.Data.Entities.Audit> ByMyxml(this IQueryable<Tracker.Data.Entities.Audit> queryable, System.String myxml, params System.String[] additionalValues) { var myxmlList = new List<System.String> { myxml }; if (additionalValues != null) myxmlList.AddRange(additionalValues); else myxmlList.Add(null); if (myxmlList.Count == 1) return queryable.ByMyxml(myxmlList[0]); return queryable.ByMyxml(myxmlList); }
public static IQueryable<Tracker.Core.Data.Audit> ByMyxml(this IQueryable<Tracker.Core.Data.Audit> queryable, System.Xml.Linq.XElement myxml, params System.Xml.Linq.XElement[] additionalValues) { var myxmlList = new List<System.Xml.Linq.XElement> { myxml }; if (additionalValues != null) myxmlList.AddRange(additionalValues); else myxmlList.Add(null); if (myxmlList.Count == 1) return queryable.ByMyxml(myxmlList[0]); return queryable.ByMyxml(myxmlList); }