Code-First Data Model Creation

Code-first is the recommended approach for creating your data model in Windows Phone. It involves writing your classes and then generating your database using metadata contained in those classes.

Until now I have never been a fan of code-first when building desktop and client/server applications, because I saw how it can lead to a lack of attention being paid to the database schema—to its structure, constraints, and indexes. Yet, applied wisely, code-first offers some key advantages. One such advantage is that you do not break the application by forgetting to propagate a schema change to other developers on your team, because all changes to the schema are done via code metadata.

The following list outlines the steps ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.