Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        private static void UpdateDownCountById()
        {
            var repo = new AttachFileRepository();

            repo.UpdateDownCountById(1);
        }