예제 #1
0
 internal RenamedColumn(IUnnamedColumnDefinion Base, LocalIdentifier Alias)
 {
     if (Alias == null) throw new ArgumentNullException("Name", "Subquery must have a name.");
     baseColumn = Base;
     AS = Alias;
     NamedColumnDefinion = new Builder(Compile);
 }
 public QualifiedIdentifier(string schema, string name)
 {
     if (string.IsNullOrWhiteSpace(name)) throw new ArgumentNullException("name", "Qualified name should not be empty.");
     Identifier = name;
     Schema = schema;
     SourceDefinion = new Builder(Compile);
 }
예제 #3
0
 internal SubQuery(SelectQuery Base, LocalIdentifier Alias)
 {
     if (Alias == null) throw new ArgumentNullException("Name", "Subquery must have a name.");
     baseQuery = Base;
     AS = Alias;
     SourceDefinion = new Builder(Compile);
 }
예제 #4
0
 private Star()
 {
     ColumnDefinion = new Builder(Compile);
 }
예제 #5
0
 public LocalIdentifier(string name)
 {
     if (string.IsNullOrWhiteSpace(name)) throw new ArgumentNullException("name", "Local name should not be empty.");
     Identifier = name;
     ColumnDefinion = new Builder(Compile);
 }
예제 #6
0
 internal Constant(object Value)
 {
     this.Value = Value;
     ColumnDefinion = new Builder(Compile);
 }
예제 #7
0
 internal Cast(IUnnamedColumnDefinion Arg, Type TargetType)
 {
     Argument = Arg;
     this.TargetType = TargetType;
     ColumnDefinion = new Builder(Compile);
 }
예제 #8
0
 public Values(IEnumerable<object[]> rows)
 {
     InsertSourceDefinion = new Builder(Compile);
     data = rows.Select(row=>row.Select(cell => new Constant(cell)));
 }
예제 #9
0
 internal FunctionCall(Function Func, IUnnamedColumnDefinion[] Args)
 {
     Function = Func;
     Arguments = Args;
     ColumnDefinion = new Builder(Compile);
 }