Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public LeettleDb Build()
 {
     Assert.NotNull(connectionString, "connectionString must not be null; use WithConnectionString");
     Assert.NotNull(dbConnectionType, "connectionString must not be null; use WithConnectionType");
     if (bindStrategy == null)
     {
         bindStrategy = new CleanBindStrategy(':');
     }
     if (sqlProvider == null)
     {
         sqlProvider = new EmptySqlProvider();
     }
     return(new LeettleDbImpl(connectionString, dbConnectionType, bindStrategy, sqlProvider));
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="bindStrategy"></param>
 /// <returns></returns>
 public LeettleDbBuilder WithBindStrategy(BindStrategy bindStrategy)
 {
     Assert.NotNull(bindStrategy, "bindStrategy must not be null");
     this.bindStrategy = bindStrategy;
     return(this);
 }