コード例 #1
0
 /// <summary>
 /// Constructs an instance of <see cref="BreezeMetadataBuilder"/>.
 /// </summary>
 public BreezeMetadataBuilder(
     INHibernateClassMetadataProvider classMetadataProvider,
     IEntityMetadataProvider entityMetadataProvider,
     IBreezeConfigurator breezeConfigurator,
     IClientModelMetadataProvider clientModelMetadataProvider,
     IPropertyValidatorsProvider propertyValidatorsProvider,
     IDataTypeProvider dataTypeProvider)
 {
     _classMetadataProvider       = classMetadataProvider;
     _entityMetadataProvider      = entityMetadataProvider;
     _breezeConfigurator          = breezeConfigurator;
     _clientModelMetadataProvider = clientModelMetadataProvider;
     _propertyValidatorsProvider  = propertyValidatorsProvider;
     _dataTypeProvider            = dataTypeProvider;
 }
コード例 #2
0
 /// <summary>
 /// Set the property validator provider that will be used to fill <see cref="BaseProperty.Validators"/>.
 /// </summary>
 /// <param name="propertyValidatorsProvider">The property validator provider.</param>
 public BreezeMetadataBuilder WithPropertyValidatorsProvider(IPropertyValidatorsProvider propertyValidatorsProvider)
 {
     _propertyValidatorsProvider = propertyValidatorsProvider;
     return(this);
 }