/// <summary> /// </summary> /// <param name="filePath"></param> private IQueryable <Edi_Pos> parse(string filePath) { string _Ext = Path.GetExtension(filePath); FileBase _Base = _fileAdapterFactory.CreateFileAdapter(_Ext); IQueryable <Edi_Pos> _Edi_Pos = _Base.ParseEdiPos(filePath); if (_Base.ListError.Count() != 0) { string _Error = string.Join("\r\n", _Base.ListError.ToArray()); throw new Exception(_Error); } return(_Edi_Pos); }