Exemplo n.º 1
0
 /// <summary>
 /// Bindet die Daten für den Export an.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="data"></param>
 /// <param name="adapter"></param>
 /// <returns></returns>
 public IExportable Build <T>(T data, IAdaptable adapter)
 {
     _exportData            = data;
     _exportTable           = adapter.Adapt <T, DataTable>(data);
     _exportTable.TableName = _setting.Name;
     return(this);
 }
Exemplo n.º 2
0
 public IExportable Build <T>(T data, IAdaptable adapter)
 {
     if (adapter == null)
     {
         _data = data;
     }
     else
     {
         _data = adapter.Adapt <T, object>(data);
     }
     return(this);
 }
Exemplo n.º 3
0
 public T As <T>(IAdaptable adapter) where T : new()
 {
     return(adapter.Adapt <object, T>(_data));
 }
Exemplo n.º 4
0
 public T As <T>(IAdaptable adapter) where T : new()
 {
     return(adapter.Adapt <DataTable, T>(_table));
 }
Exemplo n.º 5
0
 public T As <T>(IAdaptable adapter) where T : new()
 {
     return(adapter.Adapt <string, T>(_importJson));
 }