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; }
partial void UpdateTag(Tag instance);
partial void DeleteTag(Tag instance);
partial void InsertTag(Tag instance);