Example #1
0
 public static void AddChart(string _chartName, List<int> _entries)
 {
     PCMSofCCDataContext db = new PCMSofCCDataContext();
     var newChart = new ScoreChart
     {
         Name = _chartName
     };
     db.ScoreChart.InsertOnSubmit(newChart);
     foreach (int id in _entries)
     {
         var newBelong = new EntryBelongToChart
         {
             ScoreChart = newChart,
             EntryId = id
         };
         db.EntryBelongToChart.InsertOnSubmit(newBelong);
     }
     db.SubmitChanges();
 }
Example #2
0
 partial void DeleteScoreChart(ScoreChart instance);
Example #3
0
 partial void UpdateScoreChart(ScoreChart instance);
Example #4
0
 partial void InsertScoreChart(ScoreChart instance);