/// <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); }
public IExportable Build <T>(T data, IAdaptable adapter) { if (adapter == null) { _data = data; } else { _data = adapter.Adapt <T, object>(data); } return(this); }
public T As <T>(IAdaptable adapter) where T : new() { return(adapter.Adapt <object, T>(_data)); }
public T As <T>(IAdaptable adapter) where T : new() { return(adapter.Adapt <DataTable, T>(_table)); }
public T As <T>(IAdaptable adapter) where T : new() { return(adapter.Adapt <string, T>(_importJson)); }