WCF-DataService, WP7 Mango, Save in SqlCe

Aug 2, 2011 at 1:35 PM


i've a WCF-OData-Service and I want to store the received data into sql compact.
That's not the problem. It works. I always use the same class for store and receive.

[System.Data.Services.Common.DataServiceKeyAttribute ( "ID" )]   // WCF-Attribute
[Table()] // SqlCe-Attribute
public class Employee : INotifyPropertyChanged {

[Column(IsPrimaryKey=true, DbType="UNIQUEIDENTIFIER NOT NULL")] // SqlCe-Attribute
public Guid ID { ... }

I've many tables and thats very hard. :( 

Is there a tool or a helper-class, that could I do for me?
I have created the context and tables-classes with SvcUtil.
And now, I need to add the SqlCe-Attributes.

Thanks for your help and sorry for my bad english.