public void AddChange <TModel, TData>(TModel entity) where TModel : BaseModel where TData : BaseData { _store.AddChanges <TModel, TData>(_mapper, new List <TModel> { entity }); }
internal static void AddChanges <TModel, TData>(this IStore store, IMapper mapper, ICollection <TModel> entities) where TModel : BaseModel where TData : BaseData { store.AddChanges <TData>(mapper.Map <IEnumerable <TData> >(entities).ToList()); }
public void AddChange(TModel entity) { _store.AddChanges <TModel, TData>(_mapper, new List <TModel> { entity }); }