コード例 #1
0
        public void SetUp()
        {
            base.SetUp();

            attributeSetInstanceExtensionFieldGroupApplicationService
                = ApplicationContext.Current["attributeSetInstanceExtensionFieldGroupApplicationService"] as IAttributeSetInstanceExtensionFieldGroupApplicationService;
            attributeSetInstanceExtensionFieldApplicationService
                = ApplicationContext.Current["attributeSetInstanceExtensionFieldApplicationService"] as IAttributeSetInstanceExtensionFieldApplicationService;
        }
 public static IEnumerable <IAttributeSetInstanceExtensionFieldState> GetByProperty <TPropertyType>(this IAttributeSetInstanceExtensionFieldApplicationService applicationService,
                                                                                                    System.Linq.Expressions.Expression <Func <IAttributeSetInstanceExtensionFieldState, TPropertyType> > propertySelector,
                                                                                                    TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue)
 {
     return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <IAttributeSetInstanceExtensionFieldState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults));
 }