Blog.Tools.ApplicationSetup.Program.LoadCommentLikes C# (CSharp) 메소드

LoadCommentLikes() 개인적인 정적인 메소드

private static LoadCommentLikes ( ) : void
리턴 void
		private static void LoadCommentLikes()
		{
			foreach (var c in _comments)
			{
				for (var i = 1; i < 4; i++)
				{
					CommentLikeRepository.Add(new CommentLike
					{
						CreatedBy = i,
						CreatedDate = DateTime.Now.AddHours(-i),
						ModifiedBy = i,
						ModifiedDate = DateTime.Now.AddHours(-i),
						CommentId = c.CommentId,
						UserId = i,
					});
				}
			}

			AddConsoleMessage("Successfully added comment likes...");
		}