示例#1
0
        public Tag AddTag( String tagName )
        {
            var tag = GetTagIdByName( tagName );
            if (tag != null)
                return tag;

            var newTag = new Tag {name = tagName};
            db.Tags.InsertOnSubmit( newTag );
            db.SubmitChanges();
            return newTag;
        }
示例#2
0
 partial void UpdateTag(Tag instance);
示例#3
0
 partial void DeleteTag(Tag instance);
示例#4
0
 partial void InsertTag(Tag instance);