Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
//
// AssemblyInfo.cs
//
// Author:
// Jonathan Pryor <jpryor@novell.com>
//
// Copyright (C) 2009 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using DbLinq.Factory;
[assembly: AssemblyTitle ("SqlMetal")]
[assembly: AssemblyDescription ("System.Data.Linq code generator")]
[assembly: AssemblyDefaultAlias ("SqlMetal.exe")]
[assembly: CLSCompliant (true)]
// Unit tests needs access to the DbLinq internals
[assembly: InternalsVisibleTo("sqlmetal_test_net_2_0, PublicKey=" +
"0024000004800000940000000602000000240000525341310004000001000100c5753d8c47f400" +
"83f549016a5711238ac8ec297605abccd3dc4b6d0f280b4764eb2cc58ec4e37831edad7e7a07b8" +
"fe4a9cbb059374c0cc047aa28839fed7176761813caf6a2ffa0bff9afb50ead56dd3f56186a663" +
"962a12b830c2a70eb70ec77823eb5750e5bdef9e01d097c30b5c5463c3d07d3472b58e4c02f279" +
"2309259f")]
[assembly: InternalsVisibleTo("sqlmetal_test_net_4_0, PublicKey=" +
"0024000004800000940000000602000000240000525341310004000001000100c5753d8c47f400" +
"83f549016a5711238ac8ec297605abccd3dc4b6d0f280b4764eb2cc58ec4e37831edad7e7a07b8" +
"fe4a9cbb059374c0cc047aa28839fed7176761813caf6a2ffa0bff9afb50ead56dd3f56186a663" +
"962a12b830c2a70eb70ec77823eb5750e5bdef9e01d097c30b5c5463c3d07d3472b58e4c02f279" +
"2309259f")]
[assembly: DbLinq]

View File

@@ -0,0 +1,58 @@
2010-04-13 Jonathan Pryor <jonpryor@vt.edu>
* sqlmetal.exe.source: Add additional files.
2010-03-29 Raja R Harinath <harinath@hurrynot.org>
* AssemblyInfo.cs: Make internals visible to the test suite.
2010-01-04 Jonathan Pryor <jonpryor@vt.edu>
* Makefile: Ensure that Test/* files are distributed (so that
'make check' works on tarball builds). Partial fix for #564987.
2009-12-08 Jonathan Pryor <jonpryor@vt.edu>
* sqlmetal.exe.config: Add provider entry for SQL Server.
* sqlmetal.exe.sources: Add additional files.
2009-11-06 Jonathan Pryor <jonpryor@vt.edu>
* Makefile: re-enable the tests. They were disabled in r137153
because they weren't compiling, which was because System.Data.Linq
wasn't listing sqlmetal_net_2_0 as a friend assembly. (Why this
built before I couldn't tell you...) Fixed in latest S.D.L.
2009-04-30 Jonathan Pryor <jonpryor@vt.edu>
* sqlmetal.exe.config: The MySQL provider should use ByteFX.Data's
MySQL connection types, as those are actually included with Mono
(unlike MySql.Data, which isn't included with Mono).
2009-04-08 Jonathan Pryor <jonpryor@vt.edu>
* AssemblyInfo.cs: Building against the local AssemblyInfo.cs broke
sqlmetal, as it couldn't find an IProcessor implementation (as the
local AssemblyInfo.cs was missing a [assembly: DbLinq] attribute).
Fix so that sqlmetal works again.
* Makefile: Actually enable NUnit tests.
2009-04-06 Jonathan Pryor <jonpryor@vt.edu>
* . (svn:ignore): Ignore generated files.
* AssemblyInfo.cs: Added; Assembly-level attributes for sqlmetal.exe.
* Makefile: Correct the "namespace" of the embedded resource files;
build NUnit tests for sqlmetal.exe.
* sqlmetal.exe.sources: Build against the local AssemblyInfo.cs, not
DbMetal's AssemblyInfo.cs file.
* sqlmetal_test.dll.sources: Added; source files for the NUnit test.
* Test/AssemblyInfo.cs: Added; Assembly-level attributes for the NUnit
test assembly.
2009-03-12 Jonathan Pryor <jonpryor@vt.edu>
* ChangeLog, Makefile, sqlmetal.exe.config, sqlmetal.exe.sources:
Added; builds `sqlmetal.exe', which is the Mono version of DbLinq's
DbMetal.exe program (which in turn is modeled on .NET's SQLMETAL
tool), "tuned" to depend only on Mono's System.Data.Linq.

View File

@@ -0,0 +1,39 @@
thisdir = tools/sqlmetal
SUBDIRS =
include ../../build/rules.make
dbmetal_src = ../../class/System.Data.Linq/src/DbMetal
ns = DbMetal.Language
LOCAL_MCS_FLAGS = \
-d:MONO_STRICT \
-keyfile:$(dbmetal_src)/../DbLinq.snk \
-resource:$(dbmetal_src)/Language/EnglishWords.txt,$(ns).EnglishWords.txt \
-resource:$(dbmetal_src)/Language/FrenchWords.txt,$(ns).FrenchWords.txt \
-resource:$(dbmetal_src)/Language/GermanWords.txt,$(ns).GermanWords.txt \
-r:System.Configuration \
-r:System.Core \
-r:System.Data \
-r:System.Data.Linq \
-r:System.Xml
SQLMETAL_RESOURCES = \
$(dbmetal_src)/Language/EnglishWords.txt \
$(dbmetal_src)/Language/FrenchWords.txt \
$(dbmetal_src)/Language/GermanWords.txt
SQLMETAL_TEST_FILES = \
Test/AssemblyInfo.cs
EXTRA_DISTFILES = \
$(SQLMETAL_RESOURCES) \
$(SQLMETAL_TEST_FILES)
PROGRAM = sqlmetal.exe
$(PROGRAM) : Makefile $(SQLMETAL_RESOURCES)
HAS_NUNIT_TEST = yes
include ../../build/executable.make

View File

@@ -0,0 +1,42 @@
//
// AssemblyInfo.cs
//
// Author:
// Jonathan Pryor <jpryor@novell.com>
//
// Copyright (C) 2009 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle ("sqlmetal_test")]
[assembly: AssemblyDescription ("sqlmetal.exe Unit Tests")]
[assembly: AssemblyDefaultAlias ("SqlMetal_test.dll")]
[assembly: CLSCompliant (true)]
// Unit tests needs access to the DbLinq internals

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="providers" type="DbMetal.Configuration.ProvidersSection, sqlmetal" />
</configSections>
<connectionStrings>
<add name="DbMetal.Properties.Settings.TempOneConnectionString"
connectionString="Data Source=.\sqlexpress;Initial Catalog=TempOne;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<providers>
<providers>
<provider name="MySQL" dbLinqSchemaLoader="DbLinq.MySql.MySqlSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="ByteFX.Data.MySqlClient.MySqlConnection, ByteFX.Data" />
<provider name="Oracle" dbLinqSchemaLoader="DbLinq.Oracle.OracleSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="System.Data.OracleClient.OracleConnection, System.Data.OracleClient" />
<provider name="OracleODP" dbLinqSchemaLoader="DbLinq.Oracle.OracleSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess" />
<provider name="PostgreSQL" dbLinqSchemaLoader="DbLinq.PostgreSql.PgsqlSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="Npgsql.NpgsqlConnection, Npgsql" />
<provider name="SQLite" dbLinqSchemaLoader="DbLinq.Sqlite.SqliteSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="Mono.Data.Sqlite.SqliteConnection, Mono.Data.Sqlite" />
<provider name="SqlServer" dbLinqSchemaLoader="DbLinq.SqlServer.SqlServerSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="System.Data.SqlClient.SqlConnection, System.Data" />
<provider name="Ingres" dbLinqSchemaLoader="DbLinq.Ingres.IngresSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="Ingres.Client.IngresConnection, Ingres.Client" />
<provider name="Firebird" dbLinqSchemaLoader="DbLinq.Firebird.FirebirdSchemaLoader, System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" databaseConnection="FirebirdSql.Data.FirebirdClient.FbConnection, FirebirdSql.Data.FirebirdClient" />
</providers>
</providers>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>

View File

@@ -0,0 +1,40 @@
AssemblyInfo.cs
../../class/System.Data.Linq/src/DbLinq.ProductInfo.cs
../../class/System.Data.Linq/src/DbMetal/AbstractParameters.cs
../../class/System.Data.Linq/src/DbMetal/Configuration/ProvidersSection.cs
../../class/System.Data.Linq/src/DbMetal/Generator/AttributeDefinition.cs
../../class/System.Data.Linq/src/DbMetal/Generator/CodeDomGenerator.cs
../../class/System.Data.Linq/src/DbMetal/Generator/CodeWriter.cs
../../class/System.Data.Linq/src/DbMetal/Generator/EntityInterface/IImplementation.cs
../../class/System.Data.Linq/src/DbMetal/Generator/EntityInterface/Implementation/IModifiedImplementation.cs
../../class/System.Data.Linq/src/DbMetal/Generator/EntityInterface/Implementation/INotifyPropertyChangedImplementation.cs
../../class/System.Data.Linq/src/DbMetal/Generator/EntityInterface/Implementation/INotifyPropertyChangingImplementation.cs
../../class/System.Data.Linq/src/DbMetal/Generator/EntityInterface/Implementation/InterfaceImplementation.cs
../../class/System.Data.Linq/src/DbMetal/Generator/GenerationContext.cs
../../class/System.Data.Linq/src/DbMetal/Generator/ICodeGenerator.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Context.Ctor.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Procedure.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/CodeTextGenerator/CSCodeGenerator.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/CodeTextGenerator/CSCodeWriter.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/Processor.cs
../../class/System.Data.Linq/src/DbMetal/Generator/Implementation/SchemaLoaderFactory.cs
../../class/System.Data.Linq/src/DbMetal/Generator/IProcessor.cs
../../class/System.Data.Linq/src/DbMetal/Generator/ISchemaLoaderFactory.cs
../../class/System.Data.Linq/src/DbMetal/Generator/ParameterDefinition.cs
../../class/System.Data.Linq/src/DbMetal/Generator/SpecificationDefinition.cs
../../class/System.Data.Linq/src/DbMetal/Language/EnglishWords.cs
../../class/System.Data.Linq/src/DbMetal/Language/FrenchWords.cs
../../class/System.Data.Linq/src/DbMetal/Language/GermanWords.cs
../../class/System.Data.Linq/src/DbMetal/Mono/Options.cs
../../class/System.Data.Linq/src/DbMetal/Parameters.cs
../../class/System.Data.Linq/src/DbMetal/Program.cs
../../class/System.Data.Linq/src/DbMetal/Properties/Settings.Designer.cs
../../class/System.Data.Linq/src/DbMetal/Reference.cs
../../class/System.Data.Linq/src/DbMetal/Schema/DbmlRename.cs
../../class/System.Data.Linq/src/DbMetal/Schema/DbmlRenameLoader.cs
../../class/System.Data.Linq/src/DbMetal/Schema/NameAliasesLoader.cs
../../class/System.Data.Linq/src/DbMetal/Schema/TableAlias.cs
../../class/System.Data.Linq/src/DbMetal/Utility/EnvironmentExtension.cs
../../class/System.Data.Linq/src/DbMetal/Utility/VariablesExtension.cs

View File

@@ -0,0 +1,4 @@
AssemblyInfo.cs
../../../class/System.Data.Linq/src/DbMetal/Test/EnglishWordsTest.cs
../../../class/System.Data.Linq/src/DbMetal/Test/FrenchWordsTest.cs
../../../class/System.Data.Linq/src/DbMetal/Test/NameFormatterTest.cs