예제 #1
0
        public Category GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Category_By_Id");

            procedure.AddParameter("@Id", id);

            return(procedure.Get <Category>(this.FillCategory));
        }
예제 #2
0
        public Author GetByName(string name)
        {
            var procedure = new ProcedureSql("Get_Author_By_Name");

            procedure.AddParameter("@Name", name);

            return(procedure.Get <Author>(this.FillAuthor));
        }
예제 #3
0
        public Post GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Post_By_Id");

            procedure.AddParameter("@Id", id);

            return(procedure.Get <Post>(this.FillPost));
        }
예제 #4
0
        public Comment GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Comment_By_Id");

            procedure.AddParameter("@Id", id);

            return procedure.Get<Comment>(FillComment);            
        }
예제 #5
0
        public Author GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Author_By_Id");

            procedure.AddParameter("@Id", id);

            return(procedure.Get <Author>(this.FillAuthor));
        }
예제 #6
0
        public Category GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Category_By_Id");

            procedure.AddParameter("@Id", id);

            return procedure.Get<Category>(this.FillCategory);           
        }
예제 #7
0
        public Post GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Post_By_Id");

            procedure.AddParameter("@Id", id);

            return procedure.Get<Post>(this.FillPost);            
        }
예제 #8
0
        public Author GetByName(string name)
        {
            var procedure = new ProcedureSql("Get_Author_By_Name");

            procedure.AddParameter("@Name", name);

            return procedure.Get<Author>(this.FillAuthor);            
        }
예제 #9
0
        public Author GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Author_By_Id");

            procedure.AddParameter("@Id", id);

            return procedure.Get<Author>(this.FillAuthor);            
        }
예제 #10
0
        public Comment GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Comment_By_Id");

            procedure.AddParameter("@Id", id);

            return(procedure.Get <Comment>(FillComment));
        }