public override IEnumerable<FileSystem.File> GetFiles(FileSystem.Directory BaseDirectory)
{
var db = new FileSystem.FileStoreDb(this.connectionString);
var fileDir = db.FileStoreDirectories.FirstOrDefault(x=>x.Id == BaseDirectory.Id);
if (fileDir == null)
return new List<FileSystem.File>();
var arr = fileDir.FileStoreFiles.Select(x => x.CopyToFile()).ToList();
db.Dispose();
return arr;
}