示例#1
0
 public NpgsqlParameter AddNamedParameter(string name, object value)
 {
     return(_command.AddNamedParameter(name, value));
 }
示例#2
0
 public SafeSequenceFinder(EventGraph graph)
 {
     _findSafeSequence = new NpgsqlCommand($@"select min(seq_id) from {graph.DatabaseSchemaName}.mt_events where mt_events.timestamp >= :timestamp");
     _safeTimestamp    = _findSafeSequence.AddNamedParameter("timestamp", DateTimeOffset.MinValue);
 }