<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Hermes.DataAccess
{
    public interface IDataContext
    {
        IQueryable<TModel> Set<TModel>() where TModel : class;
        void Create<TModel>(TModel model) where TModel : class;
        Task SaveAsync();
        void Delete<TModel>(TModel model) where TModel : class;
        void Delete<TModel>(Guid id) where TModel : class, IContent;
        void DeleteTaxonomy<TModel>(Guid id) where TModel : class, ITaxonomy;
        void Update<TModel>(TModel model) where TModel : class;
    }
}<commit_msg>added attach to the hermes dbcontext<commit_after>﻿using Microsoft.Data.Entity;
using Microsoft.Data.Entity.ChangeTracking;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Hermes.DataAccess
{
    public interface IDataContext
    {
        IQueryable<TModel> Set<TModel>() where TModel : class;
        void Add<TModel>(TModel model) where TModel : class;
        Task SaveAsync();
        void Delete<TModel>(TModel model) where TModel : class;
        void Delete<TModel>(Guid id) where TModel : class, IContent;
        void DeleteTaxonomy<TModel>(Guid id) where TModel : class, ITaxonomy;
        void Update<TModel>(TModel model) where TModel : class;
        EntityEntry Attach(object entity, GraphBehavior behavior = GraphBehavior.IncludeDependents);
    }
}
{'fraction_non_alphanumeric': 0.09271978021978022, 'fraction_numerical': 0.0, 'mean_word_length': 3.8085808580858087, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5815535', 'n_tokens_mistral': 413, 'n_tokens_neox': 415, 'n_words': 119}