Reputation: 932
I want to add some data to an empty database, this is my piece of code
private void readSQLCE()
{
db = new MyDataContext("isostore:/qq.sdf");
cust newcust = new cust
{
C_Id = 1,
C_Name = "Amop",
C_Place = "Poik"
};
db.CS.InsertOnSubmit(newcust);
}
What else is needed to add to this to insert my data into the SQL Server CE database?
Upvotes: 1
Views: 644