Пример #1
0
 public TypeMapperConventions(
     TypeConvention <object, object> typeConvention,
     IKeyConvention keyConvention,
     IVersionConvention versionConvention)
 {
     TypeConvention    = typeConvention;
     KeyConvention     = keyConvention;
     VersionConvention = versionConvention;
 }
Пример #2
0
		public TypeMapperConventions(
			TypeConvention<object, object> typeConvention,
			IKeyConvention keyConvention,
			IVersionConvention versionConvention)
		{
			TypeConvention = typeConvention;
			KeyConvention = keyConvention;
			VersionConvention = versionConvention;
		}
Пример #3
0
        public ModelAnnotationsMapper(
            TypeConvention <object, object> typeConvention,
            IKeyConvention keyConvention,
            IVersionConvention versionConvention)
        {
            var conventions =
                new TypeMapperConventions(null, null, null, typeConvention, keyConvention, versionConvention);

            typeMapper =
                TypeMapperFactory.Create(conventions);
        }
Пример #4
0
        public static TypeMapper CreateByConventions(
            TypeConvention <object, object> convention,
            IKeyConvention keyConvention,
            IVersionConvention versionConvention)
        {
            var typeMapperConventions =
                new TypeMapperConventions(
                    convention,
                    keyConvention,
                    versionConvention);

            return
                (new TypeMapper(typeMapperConventions));
        }
Пример #5
0
		public static TypeMapper CreateByConventions(
			TypeConvention<object, object> convention,
			IKeyConvention keyConvention,
			IVersionConvention versionConvention)
		{
			var typeMapperConventions =
				new TypeMapperConventions(
					convention,
					keyConvention,
					versionConvention);

			return
				new TypeMapper(typeMapperConventions);
		}
Пример #6
0
 public TypeMapperConventions(
     IMemberStrategy primitiveStrategy,
     IMemberStrategy referenceStrategy,
     IMemberStrategy collectionStrategy,
     TypeConvention <object, object> typeConvention,
     IKeyConvention keyConvention,
     IVersionConvention versionConvention)
 {
     PrimitiveStrategy  = primitiveStrategy;
     ReferenceStrategy  = referenceStrategy;
     CollectionStrategy = collectionStrategy;
     TypeConvention     = typeConvention;
     KeyConvention      = keyConvention;
     VersionConvention  = versionConvention;
 }
Пример #7
0
		public TypeMapperConventions(
			IMemberStrategy primitiveStrategy,
			IMemberStrategy referenceStrategy,
			IMemberStrategy collectionStrategy,
			TypeConvention<object, object> typeConvention,
			IKeyConvention keyConvention,
			IVersionConvention versionConvention)
		{
			PrimitiveStrategy = primitiveStrategy;
			ReferenceStrategy = referenceStrategy;
			CollectionStrategy = collectionStrategy;
			TypeConvention = typeConvention;
			KeyConvention = keyConvention;
			VersionConvention = versionConvention;
		}
Пример #8
0
 public TypeMapperConventions(IKeyConvention keyConvention, IVersionConvention versionConvention)
 {
     KeyConvention     = keyConvention;
     VersionConvention = versionConvention;
 }
Пример #9
0
		public TypeMapperConventions(IKeyConvention keyConvention, IVersionConvention versionConvention)
		{
			KeyConvention = keyConvention;
			VersionConvention = versionConvention;
		}