TruMan1
TruMan1

Reputation: 36078

Persisting Data to the Database from a WCF Servicer

I have a WCF application in C# .NET 4.0. I made all my entity classes and can query a sample from the WCF. The sample is just hard coded values.

Now I am ready to persist these in the database. I am lost on how to approach this though. I plan to create tables for each entity class I created, but what is the best way to add the persistent data layer to my existing WCF application. Is Entity Framework a good choice for this? Thanks for any help or suggestions.

Upvotes: 1

Views: 171

Answers (1)

Shawn Mclean
Shawn Mclean

Reputation: 57469

What I suggest is to use entity framework code first. It prevents you from re-creating the model/database by hand. Just set it up so that your current entity classes are mapped to the entity framework and it will automatically create the database for you.

If you google entity framework code first, i'm sure u cant miss it.

Upvotes: 1

Related Questions