private static void UpdateByIdTest() { var repo = new AttachFileRepository(); var model = new AttachFileModel() { FileName = "Computer.jpg", FileSize = 2345, Id = 1 }; repo.UpdateById(model.FileName, model.FileSize, model.Id); }
private static void AddTest() { var repo = new AttachFileRepository(); //var model = new AttachFileModel() { UserId = 5, BoardId = 4, ArticleId = 1, FileName = "Photo.png", FileSize = 1234 }; var model = new AttachFileModel() { UserId = 5, BoardId = 4, ArticleId = 1, FileName = "Photo.jpg", FileSize = 2345 }; repo.Add(model); }
private static void UpdateDownCountById() { var repo = new AttachFileRepository(); repo.UpdateDownCountById(1); }