Exemplo n.º 1
0
 public Int32 Save(String commentText, Int32 customerId) {
     Comment query = new Comment();
     try {
         using (menuzRusDataContext db = new menuzRusDataContext(base.connectionString)) {
             query.CommentText = commentText;
             query.CustomerId = customerId;
             query.DateModified = DateTime.UtcNow;
             db.Comments.InsertOnSubmit(query);
             db.SubmitChanges();
         }
     }
     catch (Exception ex) {
     }
     return query.id;
 }
Exemplo n.º 2
0
 partial void UpdateComment(Comment instance);
Exemplo n.º 3
0
 partial void DeleteComment(Comment instance);
Exemplo n.º 4
0
 partial void InsertComment(Comment instance);