19 lines
563 B
C#
19 lines
563 B
C#
|
|
using BeWo.Data.Entities;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace BeWo.Service.Interfaces
|
|||
|
|
{
|
|||
|
|
public interface IJsonMapper<TEntity, TDC>
|
|||
|
|
where TDC : new() where TEntity : BeWoEntityBase, new()
|
|||
|
|
{
|
|||
|
|
Dictionary<string, object> ToJsonDictionary(TDC pDC);
|
|||
|
|
Dictionary<string, object> ToJsonDictionary(TEntity pEntity);
|
|||
|
|
IList<Dictionary<string, object>> ToJsonDictionary(IList<TEntity> pEntities);
|
|||
|
|
IList<Dictionary<string, object>> ToJsonDictionary(IList<TDC> pDCs);
|
|||
|
|
}
|
|||
|
|
}
|