Exemplo n.º 1
0
 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());
 }
Exemplo n.º 3
0
 public void AddChange(TModel entity)
 {
     _store.AddChanges <TModel, TData>(_mapper, new List <TModel> {
         entity
     });
 }