Category Archives: Data

Managing Resources with Reactive Extensions

Reactive Extensions While Reactive Extensions will clean up after itself, it is still your responsibility to manage limited resources, and to dispose of  any unmanaged resources. You can, however, use a variant on the using statement with Observables.

Posted in Data, Linq, Mini-Tutorial, Reactive | Tagged | 6 Comments

Persisting an image

Windows Phone From Scratch In our Full Stack program we need to take a snapshot and persist it to isolated storage, for retrieval at a later time.  This posed an interesting question: how do you put an image into a … Continue reading

Posted in Data, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 23 Comments

The Full Stack–Accidentally Pair Programming and Writing Unit Tests

In this episode of The Full Stack, Jesse and Jon continue their reboot of the windows phone client project. Having set up an MVVM application and decided on using a repository pattern on the phone that mirrors the server’s repository, … Continue reading

Posted in Data, Essentials, Full Stack, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 2 Comments

LINQ Deferred Execution–Oops!

A LINQ Tutorial Deferred execution can be a lifesaver with LINQ but it can have a downside as well. In this example we set up a LINQ query and then iterate through the results twice. The output may not be … Continue reading

Posted in Data, Linq, Mini-Tutorial | Tagged | Comments Off on LINQ Deferred Execution–Oops!

Yet Another Podcast #35–Silverlight, HTML5 and Developers

Part 1 of a conversation with Shawn Wildermuth, president of Agilitrain and author of the forthcoming book Essential Windows Phone 7 about Mix, Silverlight, Windows Phone, HTML5 and the state of .NET development Listen | Return to Yet Another Podcast … Continue reading

Posted in Community, Data, Languages, Mango, Opinion, Patterns & Skills, Podcast, WindowsPhone | Tagged | 1 Comment

Best Practices For Local Databases

Mango From Scratch I’ve recently written two posts about coding for SQL CE in Mango (the next release of Windows Phone).  Sean McKenna, who knows more about this than anyone walking the planet, dropped me an email to remind me … Continue reading

Posted in Data, Essentials, Linq, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 11 Comments

Coming In Mango–Local DB Part 2: Relationships

On May 10 I posted about the upcoming addition of SQL Server Compact Edition (CE) in Windows Phone Mango.  At that time, I showed how to create the DataContext object and how to store and retrieve “flat” data. In this … Continue reading

Posted in Data, Linq, Mini-Tutorial, WindowsPhone | Tagged | 8 Comments

Coming in Mango–Query the Contacts List

Mango From Scratch Coming in Mango is the ability to query the Contact List and retrieve considerably more information than was available previously.  In addition to the EmailAddress Chooser Task and the PhoneNumberChooserTask Mango will include an AddressChooserTask.  In addition, … Continue reading

Posted in Data, Mango, Mini-Tutorial, WindowsPhone | Tagged | 8 Comments

Coming in Mango–Sql Server CE

Mango From Scratch With the forthcoming Mango release of Windows Phone (tools to be released this month) you can store structured data in a Sql Server Compact Edition (CE) database file in isolated storage (called a local database). You don’t … Continue reading

Posted in Data, Linq, Mango, Mini-Tutorial, WindowsPhone | Tagged | 19 Comments

Yet Another Podcast #34–MVC3 & NuGet

Talking with Phil Haack (Program Manager for MVC3 and NuGet) and Jon Galloway – what are MVC and NuGet, what are their strengths and limitations and how do you lean to use them?   Listen  | Return to Yet Another … Continue reading

Posted in Data, Essentials, Full Stack, MVC, Patterns & Skills, Podcast | Tagged | Comments Off on Yet Another Podcast #34–MVC3 & NuGet

Coming In Mango–ICommand

Mango From Scratch As noted in earlier posts, Mango represents a move from Silverlight 3+ to Silverlight 4, and with that comes ICommand on ButtonBase and Hyperlink (and classes that derive from these two).  This is a significant breakthrough, especially … Continue reading

Posted in Data, Essentials, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged , | 2 Comments

Breakpoints on Xaml in Silverlight 5

Silverlight 5 MiniTutorial Silverlight 5 Beta brings the enormously useful ability to set a break point in your Xaml where you have a data binding.  This can greatly simplify debugging and fixing binding issues.

Posted in Data, Essentials, Mini-Tutorial, Silverlight 5 | Tagged | 4 Comments