public bool Load(Stream xstream) { // Populate the Books Table using (LibraryEntities context = new LibraryEntities("name=" + GlobalCache.GetResolvedString("DatabaseConfiguration"))) { context.DeserializeBooks(xstream); context.SaveChanges(); } return(true); }