public static void SaveDirectInsertDataIntoTable( DataSourceInfor dataSourceInfor, string cnnString) { string sql = UpgradeSqlProducer.GetSqlDirectSaveDataSourceIntoTable(dataSourceInfor); SqlHelper.ExecuteNonQuery(cnnString, sql); Trace.WriteLine("直接写入表BD_BusinessObjects,成功保存数据源! ID:" + dataSourceInfor.MetaID); }
public static void SaveByDataEngineService( DataSourceInfor dataSourceInfor, SqlTransaction tran) { ConfigureService proxy = new ConfigureService( ); proxy.UpdateBusinessObject(dataSourceInfor.DataSourceBO, tran); Trace.WriteLine("通过数据引擎服务成功保存数据源! ID:" + dataSourceInfor.DataSourceBO.MetaID); }
public static string GetSqlDirectSaveDataSourceIntoTable(DataSourceInfor dataSourceInfor) { return(string.Format( @"INSERT INTO BD_BusinessObjects ( MetaID, Name, ProjectNo, SubNo, MetaInfo, Description ) VALUES ( N'{0}', N'{1}', N'{2}', N'{3}', N'{4}', N'{5}' )" , dataSourceInfor.MetaID, dataSourceInfor.Name.Replace("'", "''"), dataSourceInfor.ProjectNo, dataSourceInfor.SubNo, dataSourceInfor.MetaInfo.Replace("'", "''"), dataSourceInfor.Description.Replace("'", "''"))); }
public UpgradeReport() { this._ReportLocaleInfos = new ReportLocaleInfoCollection(this); this._ReportViews = new UpgradeReportViewCollection(); this._DataSourceInfor = new DataSourceInfor(); }