Exemplo n.º 1
0
 public void SaveFromJson(string json)
 {
     var ctx = new LinqToSqlXml.DocumentContext("main");
     ctx.GetCollection<Customer>().Add(json);
     ctx.SaveChanges();
 }
Exemplo n.º 2
0
 public void Save(Customer customer)
 {
     var ctx = new LinqToSqlXml.DocumentContext("main");
     ctx.GetCollection<Customer>().Add(customer);
     ctx.SaveChanges();
 }