public void can_override_with_MartenRegistry()
        {
            var registry = new MartenRegistry();
            registry.For<Organization>().Searchable(x => x.Time2, pgType:"timestamp");

            var schema = new DocumentSchema(new StoreOptions(), null, null);
            schema.Alter(registry);

            schema.MappingFor(typeof(Organization)).DuplicatedFields.Single(x => x.MemberName == "Time2")
                .PgType.ShouldBe("timestamp");
        }
示例#2
0
        public MartenRegistryTests()
        {
            theSchema = Container.For<DevelopmentModeRegistry>().GetInstance<DocumentSchema>();

            theSchema.Alter<TestRegistry>();
        }