public DictionaryTypeServiceBase(IDictionaryRowService dictionaryRowService,
                                         IDictionaryService dictionaryService)
        {
            var className = typeof(T).Name;

            _dictionaryCode       = className.StartsWith("I") ? className.Substring(1) : className;
            _dictionaryRowService = dictionaryRowService;
            _dictionaryService    = dictionaryService;

            DictFilter =
                new BinaryFilterUnit()
            {
                Unit2 = new ParameterFilterUnit()
                {
                    PropertyName = "Code"
                },
                Unit1 = new ConstFilterUnit()
                {
                    Value = _dictionaryCode
                },
                OperatorType = OperatorType.Equals
            };

            DictRowFilter =
                new BinaryFilterUnit()
            {
                Unit2 = new ParameterFilterUnit()
                {
                    PropertyName = "DictionaryCode"
                },
                Unit1 = new ConstFilterUnit()
                {
                    Value = _dictionaryCode
                },
                OperatorType = OperatorType.Equals
            };
        }
Example #2
0
 public DistrictService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #3
0
 public PlaceTypeService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #4
0
 public SubjectTypeService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #5
0
 public HousingTypeService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #6
0
 public EquipmentTypeService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #7
0
 public DenyTypeService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #8
0
 public CuisineTypeService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }
Example #9
0
 public CityService(IDictionaryRowService dictionaryRowService, IDictionaryService dictionaryService) : base(dictionaryRowService, dictionaryService)
 {
 }