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); }
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)); }
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)); }
public SchemaDS.SchemaRow AddFolderNode(SchemaDS.SchemaDataTable mainDS, Guid id, Guid parent, string fullName) { return(AddNodeRow(mainDS, id, parent, "", fullName, fullName, GetTypeString(SectionType.Folder), "", 6)); }
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)); }
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)); }