Пример #1
0
 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);
 }
Пример #2
0
 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);
 }