/// <summary> /// Creates an instance of this class assigning the given business object renderer /// </summary> /// <param name="source">The source for the business objects</param> public BusinessObjectLayer(IBusinessObjectSource <T> source) : this(source, null) { }
/// <summary> /// Creates an instance of this class assigning the given business object renderer /// </summary> /// <param name="source">The source for the business objects</param> /// <param name="renderer">The renderer for the business objects</param> public BusinessObjectLayer(IBusinessObjectSource <T> source, IBusinessObjectRenderer <T> renderer) { _source = source; _businessObjectRenderer = renderer; LayerName = _source.Title; }
/// <summary> /// Creates a provider for the given <paramref name="source"/> /// </summary> /// <typeparam name="T">The type of the features</typeparam> /// <param name="source">The feature source</param> /// <returns>A provider</returns> public static IProvider Create <T>(IBusinessObjectSource <T> source) { return(new BusinessObjectProvider <T>(typeof(T).Name + "s", source)); }