Exemplo n.º 1
0
 public INonQueryFluentSqlCommand NonQuery()
 {
     return(new NonQueryFluentSqlCommand()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke()
     });
 }
Exemplo n.º 2
0
 public IScalarFluentSqlCommand Scalar()
 {
     return(new ScalarFluentSqlCommand()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke()
     });
 }
Exemplo n.º 3
0
 public ISingleReaderFluentSqlCommand <T> SingleReader <T>()
 {
     return(new SingleReaderFluentSqlCommand <T>()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke()
     });
 }
Exemplo n.º 4
0
 public IReaderFluentSqlCommand <T> Reader <T>()
 {
     return(new ReaderFluentSqlCommand <T>()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke(),
         Behavior = DefaultBehavior,
         Caching = DefaultCachingMode
     });
 }