I have an app that uses SSN’s to look up people in a database. I am trying to force the 10 “ssn’s” that I use for testing purposes to seed every time I run the app. I am currently dropping the table and reseeding the data with my false data but we are importing data from a real database to ours and I no longer want to do this.
Can someone lead me to a site or give me a hint on how I could go about this?
In Entity Framework you can customize a database initializer that won’t drop the database (see near the end of this page). You could then put in the false data in the Initialize Database method so that it will run every time.