//public void CompleteDataAdapter( ) //{ // var res = (from item in PropertiesToShow // where item.IsFilter // select item.Name).ToList(); // FilterLists = res; //} #endregion /// <summary> /// 对象克隆方法 /// </summary> /// <returns>克隆的对象结果</returns> public object Clone() { DataSourceAdaptor adaptor = new DataSourceAdaptor(); adaptor.FilterLists = this.FilterLists; adaptor.ShowLable = this.ShowLable; adaptor.ShowLegend = this.ShowLegend; adaptor.DataSourceName = this.DataSourceName; adaptor.StatisticsEngName = this.StatisticsEngName; adaptor.PropertiesToShow = PropertiyName.Clone(this.PropertiesToShow); adaptor.SOURCEPROVIDER = this.SOURCEPROVIDER; adaptor.Style = this.Style; adaptor.YX = this.YX; adaptor.SortX = this.SortX; adaptor.IsBand = this.IsBand; adaptor.Limits = new Limits { ColumnLimit = this.Limits.ColumnLimit, Enable = this.Limits.Enable, RowLimit = this.Limits.RowLimit }; return(adaptor); }
/// <summary> /// 数据源类克隆 /// </summary> /// <param name="adaptor"></param> /// <returns></returns> public static DataSourceAdaptor Clone(DataSourceAdaptor adaptor) { return((DataSourceAdaptor)adaptor.Clone()); }