예제 #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);