コード例 #1
0
ファイル: Comment.cs プロジェクト: AramisIT/AramisTaskManager
 public Comment(Comment comment)
 {
     GUID = comment.GUID;
     TaskGUID = comment.TaskGUID;
     User = new User(comment.User);
     Date = new DateTime(comment.Date.Year, comment.Date.Month, comment.Date.Day, comment.Date.Hour,
                         comment.Date.Minute, comment.Date.Second, comment.Date.Millisecond);
     Data = comment.Data;
     IsNew = comment.IsNew;
 }
コード例 #2
0
 public static void AddNewComment(Comment comment)
 {
     ExecuteNonQuery(string.Format(
         "insert into Comments values('{0}','{1}','{2}','{3}','{4}','{5}')",
         comment.GUID,
         comment.TaskGUID,
         comment.User.GUID,
         DateTimeToSQLiteFormat(comment.Date),
         comment.Data,
         comment.IsNew)
         , null, true);
 }