Example #1
0
        public static TagModel GetModel(int TagID)
        {
            TagModel model = null;

            DataTable dt = TagDataAccess.Get(TagID);

            if (dt.Rows.Count > 0)
            {
                DataRow row = dt.Rows[0];
                model = new TagModel();

                model.TagID            = Convert.ToInt32(row["tagid"]);
                model.TagName          = Convert.ToString(row["tagname"]);
                model.XsltTemplate     = Convert.ToString(row["xslttemplate"]);
                model.DataProvider     = Convert.ToString(row["dataprovider"]);
                model.DefaultParameter = Convert.ToString(row["defaultparameter"]);
                model.EditControl      = Convert.ToString(row["editcontrol"]);
                model.ExamplePicture   = Convert.ToString(row["examplepicture"]);
                model.IsPublic         = Convert.ToBoolean(row["ispublic"]);
                model.TagType          = Convert.ToInt32(row["tagtype"]);
            }


            return(model);
        }
Example #2
0
 public static DataTable Get(int TagID)
 {
     return(TagDataAccess.Get(TagID));
 }