Beispiel #1
0
 public ColumnInfo(BuiltInParameter parameterId, DataType dataType) : this()
 {
     this.BuiltInParameter = parameterId;
     this.DataType         = dataType;
     this.ColumnId         = RDBResource.GetColumnId(parameterId);
     this.Name             = RDBResource.GetColumnName(parameterId);
     if (Command.ConfigFile.DebugSQL)
     {
         Log.WriteLine("\t\tName [{0}]", new object[]
         {
             this.Name
         });
     }
 }
Beispiel #2
0
 public TableInfo With(Action <TableInfo, string, string, string, string> wfunction, string refTableId1, string refColumnId1, string refTableId2, BuiltInParameter refColumnId2)
 {
     wfunction(this, refTableId1, refColumnId1, refTableId2, RDBResource.GetColumnId(refColumnId2));
     return(this);
 }
Beispiel #3
0
 public TableInfo WithForeignKey(string columnId, string refTableId, BuiltInParameter refColumnId)
 {
     return(this.WithForeignKey(columnId, refTableId, RDBResource.GetColumnId(refColumnId)));
 }
Beispiel #4
0
 public TableInfo WithPrimaryKey(BuiltInParameter parameterId)
 {
     return(this.WithPrimaryKey(RDBResource.GetColumnId(parameterId)));
 }