Beispiel #1
0
 private SchemaDS.SchemaRow AddNodeRow(SchemaDS.SchemaDataTable mainDS, Guid id, Guid?parent, string schema, string name, string fullName, string schemaType, string dataType, int imageIndex)
 {
     SchemaDS.SchemaRow row = mainDS.NewSchemaRow();
     row.Name       = name;
     row.SchemaName = schema;
     row.FullName   = fullName;
     row.ID         = id;
     row.SchemaType = schemaType;
     row.ImageIndex = imageIndex;
     if (parent.HasValue)
     {
         row.ParentID = parent.Value;
     }
     row.DataType = dataType;
     mainDS.Rows.Add(row);
     return(row);
 }
Beispiel #2
0
 public SchemaDS.SchemaRow AddFunctionNode(SchemaDS.SchemaDataTable mainDS, Guid id, Guid parent, string schema, string name, string fullName)
 {
     return(AddNodeRow(mainDS, id, parent, schema, name, fullName, GetTypeString(SectionType.Function), "", 8));
 }
Beispiel #3
0
 public SchemaDS.SchemaRow AddStoredProcedureNode(SchemaDS.SchemaDataTable mainDS, Guid id, Guid parent, string schema, string name, string fullName)
 {
     return(AddNodeRow(mainDS, id, parent, schema, name, fullName, GetTypeString(SectionType.StoredProcedure), "", 11));
 }
Beispiel #4
0
 public SchemaDS.SchemaRow AddFolderNode(SchemaDS.SchemaDataTable mainDS, Guid id, Guid parent, string fullName)
 {
     return(AddNodeRow(mainDS, id, parent, "", fullName, fullName, GetTypeString(SectionType.Folder), "", 6));
 }
Beispiel #5
0
 public SchemaDS.SchemaRow AddColumnNode(SchemaDS.SchemaDataTable mainDS, Guid id, Guid parent, string fullName, string dataType, int imageIndex)
 {
     return(AddNodeRow(mainDS, id, parent, "", fullName, fullName, GetTypeString(SectionType.Column), dataType, imageIndex));
 }
Beispiel #6
0
 public SchemaDS.SchemaRow AddDatabaseNode(SchemaDS.SchemaDataTable mainDS, Guid id, string schema, string name, string fullName)
 {
     return(AddNodeRow(mainDS, id, null, schema, name, fullName, GetTypeString(SectionType.Database), "", 0));
 }