public PluralizedTablesPack(IDomainInspector domainInspector, IInflector inflector)
 {
     if (domainInspector == null)
     {
         throw new ArgumentNullException("domainInspector");
     }
     if (inflector == null)
     {
         throw new ArgumentNullException("inflector");
     }
     rootClass = new List<IPatternApplier<Type, IClassAttributesMapper>>
                     {
                         new ClassPluralizedTableApplier(inflector)
                     };
     joinedSubclass = new List<IPatternApplier<Type, IJoinedSubclassAttributesMapper>>
                      	{
                      		new JoinedSubclassPluralizedTableApplier(inflector)
                      	};
     unionSubclass = new List<IPatternApplier<Type, IUnionSubclassAttributesMapper>>
                         {
                             new UnionSubclassPluralizedTableApplier(inflector)
                         };
     collectionPath = new List<IPatternApplier<PropertyPath, ICollectionPropertiesMapper>>
                      	{
                      		new ManyToManyPluralizedTableApplier(domainInspector, inflector)
                      	};
 }
 public InflectorNamingStrategy(IInflector inflector)
 {
     if (inflector == null)
     {
         throw new ArgumentNullException("inflector");
     }
     this.inflector = inflector;
 }
		public ManyToManyPluralizedTableApplier(IDomainInspector domainInspector, IInflector inflector)
			: base(domainInspector)
		{
			if (inflector == null)
			{
				throw new ArgumentNullException("inflector");
			}
			this.inflector = inflector;
		}
 public DearDbaTablesAndColumnsNamingPack(IDomainInspector domainInspector, IInflector inflector)
 {
     if (domainInspector == null)
     {
         throw new ArgumentNullException("domainInspector");
     }
     if (inflector == null)
     {
         throw new ArgumentNullException("inflector");
     }
     rootClass = new List<IPatternApplier<Type, IClassAttributesMapper>>
                     {
                         new ClassPluralizedTableApplier(inflector),
                         new PoidColumnNameApplier()
                     };
     joinedSubclass = new List<IPatternApplier<Type, IJoinedSubclassAttributesMapper>>
                      	{
                      		new JoinedSubclassPluralizedTableApplier(inflector),
                      		new JoinedSubclassKeyAsRootIdColumnApplier(domainInspector)
                      	};
     unionSubclass = new List<IPatternApplier<Type, IUnionSubclassAttributesMapper>>
                         {
                             new UnionSubclassPluralizedTableApplier(inflector)
                         };
     collectionPath = new List<IPatternApplier<PropertyPath, ICollectionPropertiesMapper>>
                      	{
                      		new ManyToManyPluralizedTableApplier(domainInspector, inflector),
                      		new ManyToManyKeyIdColumnApplier(domainInspector),
                      		new OneToManyKeyColumnApplier(domainInspector),
                      		new CollectionOfElementsTableApplier(domainInspector, inflector),
                      		new CollectionOfElementsKeyColumnApplier(domainInspector),
                      		new CollectionOfComponentsTableApplier(domainInspector, inflector),
                      		new CollectionOfComponentsKeyColumnApplier(domainInspector),
                      	};
     propertyPath = new List<IPatternApplier<PropertyPath, IPropertyMapper>>
                    	{
                    		new ComponentPropertyColumnNameApplier(),
                    	};
     listPath = new List<IPatternApplier<PropertyPath, IListPropertiesMapper>>
                	{
                		new ListIndexAsPropertyPosColumnNameApplier(),
                	};
     manyToOnePath = new List<IPatternApplier<PropertyPath, IManyToOneMapper>>
                         {
                             new ManyToOneColumnApplier()
                         };
     manyToManyPath = new List<IPatternApplier<PropertyPath, IManyToManyMapper>>
                      	{
                      		new ManyToManyColumnApplier(domainInspector),
                      	};
 }
		public CollectionOfElementsColumnApplier(IDomainInspector domainInspector, IInflector inflector)
			: base(domainInspector)
		{
			this.inflector = inflector;
		}
 public UnionSubclassPluralizedTableApplier(IInflector inflector)
     : base(inflector)
 {
 }
 public DefaultTableizeRuleApplier(IInflector inflector)
 {
     this.inflector = inflector;
 }
 internal FluentNumberInflector(Int64 value, IInflector inflector)
 {
     this.value = value;
     this.inflector = inflector;
 }
 public FluentDecimalInflector(Decimal value, IInflector inflector)
 {
     this.value = value;
     this.inflector = inflector;
 }
Пример #10
0
 static Inflector()
 {
     _inflector = new EnglishInflector();
 }
 internal FluentStringInflector(string value, IInflector inflector)
 {
     this.value = value;
     this.inflector = inflector;
 }
 public JoinedSubclassPluralizedTableApplier(IInflector inflector)
     : base(inflector)
 {
 }
 public ClassPluralizedTableApplier(IInflector inflector)
     : base(inflector)
 {
 }