You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2008/03/17 20:01:34 UTC
svn commit: r638022 - in /ibatis/trunk/cs/mapper2:
Apache.Ibatis.Common/Data/ Apache.Ibatis.DataMapper.MySql.Test.2005/
Apache.Ibatis.DataMapper.MySql.Test.2005/Properties/
Apache.Ibatis.DataMapper.Odbc.Test.2005/
Apache.Ibatis.DataMapper.Odbc.Test.200...
Author: gbayon
Date: Mon Mar 17 12:01:31 2008
New Revision: 638022
URL: http://svn.apache.org/viewvc?rev=638022&view=rev
Log:
Update AssemblyInfo test files + let DataSource.DbProvider and DataSource.ConnectionString be settable
Added:
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Properties/
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Properties/AssemblyInfo.cs
- copied unchanged from r637576, ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Properties/AssemblyInfo.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Properties/
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Properties/AssemblyInfo.cs
- copied unchanged from r637576, ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Properties/AssemblyInfo.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Properties/
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Properties/AssemblyInfo.cs
- copied unchanged from r637576, ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Properties/AssemblyInfo.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Properties/
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Properties/AssemblyInfo.cs
- copied unchanged from r637576, ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Properties/AssemblyInfo.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Properties/
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Properties/AssemblyInfo.cs
- copied unchanged from r637576, ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Properties/AssemblyInfo.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Properties/
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Properties/AssemblyInfo.cs
- copied unchanged from r637576, ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Properties/AssemblyInfo.cs
Modified:
ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/DataSource.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/IDataSource.cs
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Apache.Ibatis.DataMapper.MySql.Test.2005.csproj
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Apache.Ibatis.DataMapper.Odbc.Test.2005.csproj
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Apache.Ibatis.DataMapper.OleDb.Test.2005.csproj
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Apache.Ibatis.DataMapper.OracleClient.Test.2005.csproj
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Apache.Ibatis.DataMapper.OracleODP.Test.2005.csproj
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005.csproj
ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Fixtures/Modules/ModuleConfigurationTest.cs
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/DataSource.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/DataSource.cs?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/DataSource.cs (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/DataSource.cs Mon Mar 17 12:01:31 2008
@@ -53,12 +53,15 @@
#endregion
#region Properties
- /// <summary>
- /// The connection string.
- /// </summary>
+
+ /// <summary>
+ /// Gets or sets the connection string.
+ /// </summary>
+ /// <value>The connection string.</value>
public virtual string ConnectionString
{
get { return connectionString; }
+ set { connectionString = value; }
}
/// <summary>
@@ -69,13 +72,16 @@
get { return id; }
}
- /// <summary>
- /// The provider to use for this data source.
- /// </summary>
- [XmlIgnore]
+
+ /// <summary>
+ /// Gets or sets the db provider.
+ /// </summary>
+ /// <value>The db provider.</value>
public virtual IDbProvider DbProvider
{
get { return provider; }
+ set { provider = value; }
+
}
#endregion
@@ -105,5 +111,5 @@
return "Source: ConnectionString : "+ connectionString;
}
- }
+ }
}
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/IDataSource.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/IDataSource.cs?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/IDataSource.cs (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.Common/Data/IDataSource.cs Mon Mar 17 12:01:31 2008
@@ -35,15 +35,18 @@
/// </summary>
string Id { get; }
- /// <summary>
- /// Connection string used to create connections.
- /// </summary>
- string ConnectionString { get; }
- /// <summary>
- /// The data provider.
- /// </summary>
- IDbProvider DbProvider { get; }
+ /// <summary>
+ /// Gets or sets the connection string.
+ /// </summary>
+ /// <value>The connection string.</value>
+ string ConnectionString { set; get; }
+
+ /// <summary>
+ /// Gets or sets the db provider.
+ /// </summary>
+ /// <value>The db provider.</value>
+ IDbProvider DbProvider { set; get; }
}
}
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Apache.Ibatis.DataMapper.MySql.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Apache.Ibatis.DataMapper.MySql.Test.2005.csproj?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Apache.Ibatis.DataMapper.MySql.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.MySql.Test.2005/Apache.Ibatis.DataMapper.MySql.Test.2005.csproj Mon Mar 17 12:01:31 2008
@@ -7,8 +7,8 @@
<ProjectGuid>{2F90BECE-AB2A-45A4-95DB-83025E8C1BD5}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ibatis.DataMapper.MySql.Test._005</RootNamespace>
- <AssemblyName>Apache.Ibatis.DataMapper.MySql.Test.2005</AssemblyName>
+ <RootNamespace>Apache.Ibatis.DataMapper.MySql.Test</RootNamespace>
+ <AssemblyName>Apache.Ibatis.DataMapper.MySql.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -33,9 +33,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
<None Include="App.config" />
<None Include="DataBase.config" />
</ItemGroup>
@@ -67,6 +64,9 @@
<Content Include="Scripts\simple-init.sql" />
<Content Include="Scripts\swap-procedure.sql" />
<Content Include="Scripts\user-init.sql" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Domain\" />
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Apache.Ibatis.DataMapper.Odbc.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Apache.Ibatis.DataMapper.Odbc.Test.2005.csproj?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Apache.Ibatis.DataMapper.Odbc.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.Odbc.Test.2005/Apache.Ibatis.DataMapper.Odbc.Test.2005.csproj Mon Mar 17 12:01:31 2008
@@ -7,8 +7,8 @@
<ProjectGuid>{63B29CDE-E446-44F7-89FF-48C7D20A13D0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ibatis.DataMapper.Odbc.Test._005</RootNamespace>
- <AssemblyName>Apache.Ibatis.DataMapper.Odbc.Test.2005</AssemblyName>
+ <RootNamespace>Apache.Ibatis.DataMapper.Odbc.Test</RootNamespace>
+ <AssemblyName>Apache.Ibatis.DataMapper.Odbc.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -33,9 +33,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
<None Include="App.config" />
<None Include="DataBase.config" />
</ItemGroup>
@@ -52,6 +49,9 @@
<Content Include="Maps\Other.xml" />
<Content Include="Maps\ParameterClass.xml" />
<Content Include="Maps\ResultClass.xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Domain\" />
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Apache.Ibatis.DataMapper.OleDb.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Apache.Ibatis.DataMapper.OleDb.Test.2005.csproj?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Apache.Ibatis.DataMapper.OleDb.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OleDb.Test.2005/Apache.Ibatis.DataMapper.OleDb.Test.2005.csproj Mon Mar 17 12:01:31 2008
@@ -7,8 +7,8 @@
<ProjectGuid>{11867E8F-6E81-4A8A-8CD7-9B0FA146F7EB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ibatis.DataMapper.OleDb.Test._005</RootNamespace>
- <AssemblyName>Apache.Ibatis.DataMapper.OleDb.Test.2005</AssemblyName>
+ <RootNamespace>Apache.Ibatis.DataMapper.OleDb.Test</RootNamespace>
+ <AssemblyName>Apache.Ibatis.DataMapper.OleDb.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Apache.Ibatis.DataMapper.OracleClient.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Apache.Ibatis.DataMapper.OracleClient.Test.2005.csproj?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Apache.Ibatis.DataMapper.OracleClient.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleClient.Test.2005/Apache.Ibatis.DataMapper.OracleClient.Test.2005.csproj Mon Mar 17 12:01:31 2008
@@ -7,8 +7,8 @@
<ProjectGuid>{72849281-1C73-4F05-96F5-05B0D859FFA6}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ibatis.DataMapper.OracleClient.Test._005</RootNamespace>
- <AssemblyName>Apache.Ibatis.DataMapper.OracleClient.Test.2005</AssemblyName>
+ <RootNamespace>Apache.Ibatis.DataMapper.OracleClient.Test</RootNamespace>
+ <AssemblyName>Apache.Ibatis.DataMapper.OracleClient.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -33,9 +33,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
<None Include="App.config" />
<None Include="DataBase.config" />
</ItemGroup>
@@ -68,6 +65,9 @@
<Content Include="Scripts\other-init.sql" />
<Content Include="Scripts\swap-procedure.sql" />
<Content Include="Scripts\user-init.sql" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Domain\" />
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Apache.Ibatis.DataMapper.OracleODP.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Apache.Ibatis.DataMapper.OracleODP.Test.2005.csproj?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Apache.Ibatis.DataMapper.OracleODP.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.OracleODP.Test.2005/Apache.Ibatis.DataMapper.OracleODP.Test.2005.csproj Mon Mar 17 12:01:31 2008
@@ -7,8 +7,8 @@
<ProjectGuid>{96F8E93D-2B4F-4223-8EFE-01731CCBC979}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ibatis.DataMapper.OracleODP.Test._005</RootNamespace>
- <AssemblyName>Apache.Ibatis.DataMapper.OracleODP.Test.2005</AssemblyName>
+ <RootNamespace>Apache.Ibatis.DataMapper.OracleODP.Test</RootNamespace>
+ <AssemblyName>Apache.Ibatis.DataMapper.OracleODP.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -33,9 +33,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
<None Include="App.config" />
<None Include="DataBase.config" />
</ItemGroup>
@@ -68,6 +65,9 @@
<Content Include="Scripts\other-init.sql" />
<Content Include="Scripts\swap-procedure.sql" />
<Content Include="Scripts\user-init.sql" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Domain\" />
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005.csproj?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005/Apache.Ibatis.DataMapper.PostgreSQL.Test.2005.csproj Mon Mar 17 12:01:31 2008
@@ -7,8 +7,8 @@
<ProjectGuid>{DA5A59F0-DF1E-4653-BC64-5AEE32F5308E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ibatis.DataMapper.PostgreSQL.Test._005</RootNamespace>
- <AssemblyName>Apache.Ibatis.DataMapper.PostgreSQL.Test.2005</AssemblyName>
+ <RootNamespace>Apache.Ibatis.DataMapper.PostgreSQL.Test</RootNamespace>
+ <AssemblyName>Apache.Ibatis.DataMapper.PostgreSQL.Test</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -33,9 +33,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
<None Include="App.config" />
<None Include="DataBase.config" />
</ItemGroup>
@@ -67,6 +64,9 @@
<Content Include="Scripts\simple-init.sql" />
<Content Include="Scripts\swap-procedure.sql" />
<Content Include="Scripts\user-init.sql" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Domain\" />
Modified: ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Fixtures/Modules/ModuleConfigurationTest.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Fixtures/Modules/ModuleConfigurationTest.cs?rev=638022&r1=638021&r2=638022&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Fixtures/Modules/ModuleConfigurationTest.cs (original)
+++ ibatis/trunk/cs/mapper2/Apache.Ibatis.DataMapper.SqlClient.Test.2005/Fixtures/Modules/ModuleConfigurationTest.cs Mon Mar 17 12:01:31 2008
@@ -57,11 +57,13 @@
public string ConnectionString
{
get { throw new Exception("The method or operation is not implemented."); }
+ set { throw new Exception("The method or operation is not implemented."); }
}
public IDbProvider DbProvider
{
get { throw new Exception("The method or operation is not implemented."); }
+ set { throw new Exception("The method or operation is not implemented."); }
}
#endregion