nosql - Can't add index via C# to RavenDB database -


i'm trying create simple index, includes 2 fields document: tracerowid, loaddate.

so i've created following class:

using model; using raven.abstractions.indexing; using raven.client.indexes; using raven.client.linq; using raven.client.document; using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks;  namespace indexes {     public class idloaddateindex : abstractindexcreationtask<servicetrace>     {         public idloaddateindex()         {             map = servicetrace => st in servicetrace                                   select new { id = st.tracerowid, loaddate = st.loaddate };         }     } } 

my model "servicetrace":

using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks;  namespace model {     public class servicetrace     {         public int tracerowid { get; set; }         public string statusdescription { get; set; }         public string fullexceptiontext { get; set; }         public string loaddate { get; set; }     } } 

and there goes dal:

using indexes; using raven.client.indexes; using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks;  namespace dal {     public class dbconnection     {         private readonly static dbconnection instance = new dbconnection();         private raven.client.document.documentstore documentstore;          static dbconnection()         {         }          private dbconnection()         {             this.documentstore = new raven.client.document.documentstore { url = "http://btadmins:8080/" };                         this.documentstore.initialize();             indexcreation.createindexes(typeof(idloaddateindex).assembly, this.documentstore);         }          public static dbconnection instance         {                         {                 return instance;             }         }          public raven.client.document.documentstore documentstore         {                         {                 return documentstore;             }         }     } } 

for reason, when stepping on over debug mode on "createindexes" line, done succesfully. can't see indexes added on ravendb management studio silverlight app. can problem ?

perhaps looking in named database in studio? not naming specific database here, creating index in raven's system database.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -