Exemplo n.º 1
0
 public ViewInformation[] GetViews()
 {
     return(DacPackage.GetObjects(DacQueryScopes.UserDefined, ModelSchema.View)
            .Select(f => new ViewInformation
     {
         TableName = f.Name.ToString()
     })
            .ToArray());
 }
Exemplo n.º 2
0
 public StoredProcedureInformation[] GetStoredProcedures()
 {
     return(DacPackage.GetObjects(DacQueryScopes.UserDefined, ModelSchema.Procedure)
            .Select(f => new StoredProcedureInformation
     {
         TableName = f.Name.ToString()
     })
            .ToArray());
 }
Exemplo n.º 3
0
 public TableInformations[] GetTables()
 {
     return(DacPackage.GetObjects(DacQueryScopes.UserDefined, ModelSchema.Table)
            .Select(f => new TableInformations
     {
         TableName = f.Name.ToString()
     })
            .ToArray());
 }
Exemplo n.º 4
0
        public string GetDatabaseName()
        {
            return("?");

            var sqlObjects = DacPackage.GetObjects(DacQueryScopes.UserDefined, ModelSchema.DatabaseOptions);

            return(sqlObjects.FirstOrDefault().Name.ToString());

            throw new NotImplementedException();
        }