Esempio n. 1
0
 public static MartenServicesBuilder UseConnectionString(this MartenServicesBuilder builder, string connectionString)
 {
     return(Configure(builder, _ => _.Connection(connectionString)));
 }
Esempio n. 2
0
 /// <summary>
 /// Enable dirty tracking
 /// </summary>
 /// <returns></returns>
 public static MartenServicesBuilder UseDirtyTrackedSession(this MartenServicesBuilder builder)
 {
     builder.Parent.Services.RemoveAll <IDocumentSession>();
     builder.Parent.Services.TryAddScoped(c => c.GetRequiredService <IDocumentStore>().DirtyTrackedSession());
     return(builder);
 }
Esempio n. 3
0
 public static MartenServicesBuilder Configure(this MartenServicesBuilder builder, MartenComponentConfigurationDelegate action)
 {
     builder.AddDelegate(action);
     return(builder);
 }