Ejemplo n.º 1
0
        public async Task can_create_with_indexes()
        {
            theMapping.Index(x => x.UserName);
            theMapping.Index(x => x.FirstName);

            writeTable();

            var existing = await theTable.FetchExisting(_conn);

            existing.Indexes.Count.ShouldBe(2);
        }
Ejemplo n.º 2
0
        public void can_create_with_indexes()
        {
            theMapping.Index(x => x.UserName);
            theMapping.Index(x => x.FirstName);

            writeTable();

            var existing = theTable.FetchExisting(_conn);

            existing.ActualIndices.Count.ShouldBe(2);
        }
Ejemplo n.º 3
0
 public static void ConfigureMarten(DocumentMapping <PreviousName> mapping)
 {
     mapping.DatabaseSchemaName = "events";
     mapping.Index(x => x.StreamId);
 }