public static void AddScoreEntry(string _name, int _maxScore, string _criteria, string _remark) { PCMSofCCDataContext db = new PCMSofCCDataContext(); var newScoreEntry = new ScoreEntry { Name = _name, Criteria = StringHelper.ReplaceNewLine(_criteria), MaxScore = _maxScore, Remark = StringHelper.ReplaceNewLine(_remark) }; db.ScoreEntry.InsertOnSubmit(newScoreEntry); db.SubmitChanges(); }
partial void DeleteScoreEntry(ScoreEntry instance);
partial void UpdateScoreEntry(ScoreEntry instance);
partial void InsertScoreEntry(ScoreEntry instance);