예제 #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);
 }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }