public void addTagToDatabase(DBTagInfo tag) { using (DBTagContext context = new DBTagContext()) { context.Tags.Add(tag); context.SaveChanges(); } }
public DBTagRepository() { context = new DBTagContext(); }