6 windows-phone8-introduction-m6-slides

599 views

Published on

Published in: Education, Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
599
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

6 windows-phone8-introduction-m6-slides

  1. 1.    
  2. 2.       
  3. 3.       
  4. 4.              
  5. 5.           
  6. 6.       [Table(Name="MyEntities")] public class MyEntity { [Column(IsPrimaryKey=true)] public int Property1 { get; set; } [Column] public string Property2 { get; set; } } public class MyTripContext : DataContext { public MyTripContext(string connstring) : base(connstring) { }  public Table<Trip> Trips; public Table<Visit> Visits;  }   var query = db.Trips.Where( t => t.Title == "trip 1"); db.Trips.InsertOnSubtmit(newTrip); db.Trips.DeleteOnSubtmit(selectedTrip); ... db.SubmitChanges();
  7. 7.          
  8. 8.    

×