public static T LoadOne <T>(T target, IDataReader dr, object loaderInfo) where T : class, new() { if (loaderInfo == null) { Dal.Core.Loader.Loader.LoadObject <T>(target, dr, EntityBinderFactory.GetBinder(target.GetType().ToString())); } else { Dal.Core.Loader.Loader.LoadObject <T>(target, dr, EntityBinderFactory.GetBinder(loaderInfo)); } return(target); }
public Collection <T> Load <T>(Collection <T> target, IDataReader dr, object loaderInfo) where T : class, new() { target = (loaderInfo != null) ? Dal.Core.Loader.Loader.LoadObjects <T>(target, dr, EntityBinderFactory.GetBinder(loaderInfo), Context) : Dal.Core.Loader.Loader.LoadObjects <T>(target, dr, EntityBinderFactory.GetBinder(typeof(T).ToString()), Context); return(target); }