Example #1
0
        public static Tag FetchTagByParameter(string columnName, object value)
        {
            //NOTE: GJ: maybe we should add support for this in SubSonic? (like rails does)
            TagCollection t = new TagCollection();

            t.Load(Tag.FetchByParameter(columnName, value));
            if (t.Count == 0)
            {
                return(null);
            }
            else
            {
                return(t[0]);
            }
        }