Print Page | Close Window

Code First Testing

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3518
Printed Date: 25-Apr-2024 at 6:57am


Topic: Code First Testing
Posted By: JChris
Subject: Code First Testing
Date Posted: 05-Jul-2012 at 8:43am
I am exploring using Code First to maintain our database design in source control, replicate our database to developers, and possibly even to update clients. I have gone through several tutorials on Code First, including Wards. The hello world examples from Ward and Julie Lehrner are very helpful, however I've run into some errors applying this to my complex database. Especially trying to implement migrations. At this point, I could imagine spending a month learning/implementing it. Are there any other good resources out there? Is this recommended by DevForce as a feasable solution for keeping developer in sync? updating potentially hundreds or thousands of customers?



Replies:
Posted By: mgood
Date Posted: 05-Jul-2012 at 11:32am
We don't have a lot of real world experience with migrations yet, but it's certainly promising. Code-First vs. Model-First vs. Database-First really depends on your situation. If you have an existing DB, then going CF involves some work for example. There is Code-Second, that allows you to generate Code-First classes from an existing DB, but you are still left with a lot of cleanup. If you start green field on the other hand, then Code-First makes a lot of sense. 



Print Page | Close Window