Ejemplo n.º 1
0
 /// <summary>
 /// Delay load property
 /// </summary>
 public static IEnumerable <TReturn> LoadCollection <TReturn>(this IIdentifiedEntity me, string propertyName, bool forceReload = false)
 {
     return(me.LoadProperty(propertyName, forceReload) as IEnumerable <TReturn> ?? new List <TReturn>());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Delay load property
 /// </summary>
 public static TReturn LoadProperty <TReturn>(this IIdentifiedEntity me, string propertyName, bool forceReload = false)
 {
     return((TReturn)me.LoadProperty(propertyName, forceReload));
 }