Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 4
0
        public Comment GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Comment_By_Id");

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

            return procedure.Get<Comment>(FillComment);            
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);           
        }
Exemplo n.º 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);            
        }
Exemplo n.º 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);            
        }
Exemplo n.º 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);            
        }
Exemplo n.º 10
0
        public Comment GetById(int id)
        {
            var procedure = new ProcedureSql("Get_Comment_By_Id");

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

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