コード例 #1
0
 public INonQueryFluentSqlCommand NonQuery()
 {
     return(new NonQueryFluentSqlCommand()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke()
     });
 }
コード例 #2
0
 public IScalarFluentSqlCommand Scalar()
 {
     return(new ScalarFluentSqlCommand()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke()
     });
 }
コード例 #3
0
 public ISingleReaderFluentSqlCommand <T> SingleReader <T>()
 {
     return(new SingleReaderFluentSqlCommand <T>()
     {
         CommandType = DefaultCommandType,
         IsolationLevel = DefaultIsolationLevel,
         Connection = DefaultConnection?.Invoke(),
         Transaction = DefaultTransaction?.Invoke()
     });
 }
コード例 #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
     });
 }