Example #1
0
        public override DataTable Clone()
        {
            SizeAnalysisTable cln = ((SizeAnalysisTable)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
Example #2
0
        public static SizeAnalysisTable GetDatabaseSizeAnalysis(ConnectionData connData)
        {
            SizeAnalysisTable tbl = new SizeAnalysisTable();

            try
            {
                SqlConnection conn = SqlSync.Connection.ConnectionHelper.GetConnection(connData);
                SqlCommand    cmd  = new SqlCommand(new ResourceHelper().GetFromResources("SqlSync.DbInformation.SizeAnalysis.sql"));
                cmd.Connection = conn;
                SqlDataAdapter adapt = new SqlDataAdapter(cmd);
                adapt.Fill(tbl);
            }
            catch (SqlException ex)
            {
                if (ex.ToString().IndexOf("does not exist in database") == -1)
                {
                    throw;
                }
            }
            return(tbl);
        }
Example #3
0
 internal SizeAnalysisRow(DataRowBuilder rb) : base(rb)
 {
     this.tableSizeAnalysisTable = ((SizeAnalysisTable)(this.Table));
 }