Esempio 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);
 }
Esempio 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);
 }
Esempio n. 3
0
 public T As <T>(IAdaptable adapter) where T : new()
 {
     return(adapter.Adapt <object, T>(_data));
 }
Esempio n. 4
0
 public T As <T>(IAdaptable adapter) where T : new()
 {
     return(adapter.Adapt <DataTable, T>(_table));
 }
Esempio n. 5
0
 public T As <T>(IAdaptable adapter) where T : new()
 {
     return(adapter.Adapt <string, T>(_importJson));
 }