Files

19 lines
563 B
C#
Raw Permalink Normal View History

2025-04-15 16:28:17 +02:00
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);
}
}